* [gentoo-user] Permissions, permissions
@ 2007-10-15 22:24 Mick
2007-10-15 22:40 ` [gentoo-user] " Guilherme Amadio
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Mick @ 2007-10-15 22:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
Hi All,
This is a simple question but I'm getting tired and can't think straight with
this permissions problem:
I am trying to create a directory within which two users will be able to save
and delete documents. This directory is only meant to be accessible/readable
by these two users.
I created directory TEST, under /var/www/html. This contains subdirectories
TEST1, TEST2, TEST3. Each subdirectory contains other files. I set the
permissions recursively to apache:ftp. Both users are members of group ftp.
I chmod -R g+w.
When I create a new subdirectory and save a file in it I noticed that it is
mick:wheel instead of mick:ftp. How do I set it up so that newly created
directories/files inherit the parent group ownership?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Permissions, permissions
2007-10-15 22:24 [gentoo-user] Permissions, permissions Mick
@ 2007-10-15 22:40 ` Guilherme Amadio
2007-10-17 20:59 ` [gentoo-user] Problems with vlc Alfredo Perez
2007-10-16 0:20 ` [gentoo-user] Permissions, permissions Allan Gottlieb
2007-10-16 5:42 ` Alan McKinnon
2 siblings, 1 reply; 9+ messages in thread
From: Guilherme Amadio @ 2007-10-15 22:40 UTC (permalink / raw
To: gentoo-user
On Mon, Oct 15, 2007 at 11:24:15PM +0100, Mick wrote:
> Hi All,
>
> This is a simple question but I'm getting tired and can't think straight with
> this permissions problem:
>
> I am trying to create a directory within which two users will be able to save
> and delete documents. This directory is only meant to be accessible/readable
> by these two users.
>
> I created directory TEST, under /var/www/html. This contains subdirectories
> TEST1, TEST2, TEST3. Each subdirectory contains other files. I set the
> permissions recursively to apache:ftp. Both users are members of group ftp.
> I chmod -R g+w.
>
> When I create a new subdirectory and save a file in it I noticed that it is
> mick:wheel instead of mick:ftp. How do I set it up so that newly created
> directories/files inherit the parent group ownership?
> --
You are probably looking for something like newgrp/gpasswd.
$ touch foo
$ newgrp wheel
$ touch bar
$ ls -l foo bar
-rw-r--r-- 1 amadio wheel 0 2007-10-15 20:39 bar
-rw-r--r-- 1 amadio amadio 0 2007-10-15 20:39 foo
$
I hope this info was useful.
Cheers,
Guilherme
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Permissions, permissions
2007-10-15 22:24 [gentoo-user] Permissions, permissions Mick
2007-10-15 22:40 ` [gentoo-user] " Guilherme Amadio
@ 2007-10-16 0:20 ` Allan Gottlieb
2007-10-16 5:42 ` Alan McKinnon
2 siblings, 0 replies; 9+ messages in thread
From: Allan Gottlieb @ 2007-10-16 0:20 UTC (permalink / raw
To: gentoo-user
At Mon, 15 Oct 2007 23:24:15 +0100 Mick <michaelkintzios@gmail.com> wrote:
> Hi All,
>
> This is a simple question but I'm getting tired and can't think straight with
> this permissions problem:
>
> I am trying to create a directory within which two users will be able to save
> and delete documents. This directory is only meant to be accessible/readable
> by these two users.
>
> I created directory TEST, under /var/www/html. This contains subdirectories
> TEST1, TEST2, TEST3. Each subdirectory contains other files. I set the
> permissions recursively to apache:ftp. Both users are members of group ftp.
> I chmod -R g+w.
>
> When I create a new subdirectory and save a file in it I noticed that it is
> mick:wheel instead of mick:ftp. How do I set it up so that newly created
> directories/files inherit the parent group ownership?
There are two possibilities for newly created subdirectories and
files in this directory.
1. Same group as the creator.
2. Same group as the parent directory.
If my memory is correct this is a bsd vs sysV distinction.
Nowadays you get to choose the behavior you want.
Since you want behavior 2 you want the set-group-ID bit set on the
parent and then newly created subdirectories and files in this
directory will inherit the group from the parent.
So you want to
chmod +2000 parent-directory
The full story is in the info page Node: Directory Setuid and Setgid
I just read it to check my memory and found out that apparently some
systems use the set-user-ID bit so the page suggests
chmod +6000 parent-directory
which sets both.
Also this is a gnu extension and not required by POSIX.
allan gottlieb
new york university
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Permissions, permissions
2007-10-15 22:24 [gentoo-user] Permissions, permissions Mick
2007-10-15 22:40 ` [gentoo-user] " Guilherme Amadio
2007-10-16 0:20 ` [gentoo-user] Permissions, permissions Allan Gottlieb
@ 2007-10-16 5:42 ` Alan McKinnon
2007-10-16 5:56 ` Mick
2 siblings, 1 reply; 9+ messages in thread
From: Alan McKinnon @ 2007-10-16 5:42 UTC (permalink / raw
To: gentoo-user
On Tuesday 16 October 2007, Mick wrote:
> Hi All,
>
> This is a simple question but I'm getting tired and can't think
> straight with this permissions problem:
>
> I am trying to create a directory within which two users will be able
> to save and delete documents. This directory is only meant to be
> accessible/readable by these two users.
>
> I created directory TEST, under /var/www/html. This contains
> subdirectories TEST1, TEST2, TEST3. Each subdirectory contains other
> files. I set the permissions recursively to apache:ftp. Both users
> are members of group ftp. I chmod -R g+w.
>
> When I create a new subdirectory and save a file in it I noticed that
> it is mick:wheel instead of mick:ftp. How do I set it up so that
> newly created directories/files inherit the parent group ownership?
You want the setgid bit on for the directory. This causes all new files
and directories in it to be owned by the same group that owns the
top-most directory:
chmod g+s TEST
This won't change permissions on existing directories though, and you
can't use chmod -R (that will sgid the files as well), so use find like
so:
find TEST -type d -exec chmod g+s {} \;
You will also need to enable group write permission on these directories
so that your users can delete stuff. Two ways:
1. Make sure both users use a umask like 775 (this is fragile as the
user can change their umask any time they want)
2. Use an ACL on the directory. 'man setfacl' for more details
alan
--
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?
Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Permissions, permissions
2007-10-16 5:42 ` Alan McKinnon
@ 2007-10-16 5:56 ` Mick
0 siblings, 0 replies; 9+ messages in thread
From: Mick @ 2007-10-16 5:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1874 bytes --]
On Tuesday 16 October 2007, Alan McKinnon wrote:
> On Tuesday 16 October 2007, Mick wrote:
> > Hi All,
> >
> > This is a simple question but I'm getting tired and can't think
> > straight with this permissions problem:
> >
> > I am trying to create a directory within which two users will be able
> > to save and delete documents. This directory is only meant to be
> > accessible/readable by these two users.
> >
> > I created directory TEST, under /var/www/html. This contains
> > subdirectories TEST1, TEST2, TEST3. Each subdirectory contains other
> > files. I set the permissions recursively to apache:ftp. Both users
> > are members of group ftp. I chmod -R g+w.
> >
> > When I create a new subdirectory and save a file in it I noticed that
> > it is mick:wheel instead of mick:ftp. How do I set it up so that
> > newly created directories/files inherit the parent group ownership?
>
> You want the setgid bit on for the directory. This causes all new files
> and directories in it to be owned by the same group that owns the
> top-most directory:
>
> chmod g+s TEST
>
> This won't change permissions on existing directories though, and you
> can't use chmod -R (that will sgid the files as well), so use find like
> so:
>
> find TEST -type d -exec chmod g+s {} \;
>
> You will also need to enable group write permission on these directories
> so that your users can delete stuff. Two ways:
>
> 1. Make sure both users use a umask like 775 (this is fragile as the
> user can change their umask any time they want)
> 2. Use an ACL on the directory. 'man setfacl' for more details
Thank you both! sgid is what I was after. The users are trusted (the server
owner and myself) so that'll do for now. I will also check acl, in case the
need arises in the future for control of a finer granularity.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Problems with vlc
2007-10-15 22:40 ` [gentoo-user] " Guilherme Amadio
@ 2007-10-17 20:59 ` Alfredo Perez
2007-10-17 21:01 ` Albert Hopkins
2007-10-18 12:22 ` AW: " Zimmerling, Alexander
0 siblings, 2 replies; 9+ messages in thread
From: Alfredo Perez @ 2007-10-17 20:59 UTC (permalink / raw
To: gentoo-user
Hi
I did an update of the system and I noticed that vlc got updated.
Now I can open movies but the rest of the gui does not come out.
What I am refering to is the gui where you can rew/ff the movie.
Any ideas why is not coming out?
Thanks in advance.
Alfredo
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Problems with vlc
2007-10-17 20:59 ` [gentoo-user] Problems with vlc Alfredo Perez
@ 2007-10-17 21:01 ` Albert Hopkins
2007-10-18 9:49 ` Danis Petkakis
2007-10-18 12:22 ` AW: " Zimmerling, Alexander
1 sibling, 1 reply; 9+ messages in thread
From: Albert Hopkins @ 2007-10-17 21:01 UTC (permalink / raw
To: gentoo-user
On Wed, 2007-10-17 at 16:59 -0400, Alfredo Perez wrote:
> Hi
>
> I did an update of the system and I noticed that vlc got updated.
> Now I can open movies but the rest of the gui does not come out.
> What I am refering to is the gui where you can rew/ff the movie.
Possibly check the wxwindows and skins USE flags?
# equery u vlc
I know if you build vlc w/o the wxwindows flag you get no gui.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Problems with vlc
2007-10-17 21:01 ` Albert Hopkins
@ 2007-10-18 9:49 ` Danis Petkakis
0 siblings, 0 replies; 9+ messages in thread
From: Danis Petkakis @ 2007-10-18 9:49 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 749 bytes --]
check out this <http://forums.gentoo.org/viewtopic-t-600869-highlight-.html>post
in gentoo-forums...there seems to be a problem with
linking vlc with ansi although "unicode" flag is enabled and wxGTK aswell...
On 18/10/2007, Albert Hopkins <marduk@letterboxes.org> wrote:
>
>
> On Wed, 2007-10-17 at 16:59 -0400, Alfredo Perez wrote:
> > Hi
> >
> > I did an update of the system and I noticed that vlc got updated.
> > Now I can open movies but the rest of the gui does not come out.
> > What I am refering to is the gui where you can rew/ff the movie.
>
> Possibly check the wxwindows and skins USE flags?
>
> # equery u vlc
>
> I know if you build vlc w/o the wxwindows flag you get no gui.
>
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 1142 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* AW: [gentoo-user] Problems with vlc
2007-10-17 20:59 ` [gentoo-user] Problems with vlc Alfredo Perez
2007-10-17 21:01 ` Albert Hopkins
@ 2007-10-18 12:22 ` Zimmerling, Alexander
1 sibling, 0 replies; 9+ messages in thread
From: Zimmerling, Alexander @ 2007-10-18 12:22 UTC (permalink / raw
To: gentoo-user
hi there,
had a similar problem. I found a bugreport dealing with the problem.
here's the link: http://bugs.gentoo.org/show_bug.cgi?id=194300
Von: Alfredo Perez [mailto:alfredoj69@rogers.com]
Gesendet: Mittwoch, 17. Oktober 2007 22:59
An: gentoo-user@lists.gentoo.org
Betreff: [gentoo-user] Problems with vlc
Hi
I did an update of the system and I noticed that vlc got updated.
Now I can open movies but the rest of the gui does not come out.
What I am refering to is the gui where you can rew/ff the movie.
Any ideas why is not coming out?
Thanks in advance.
Alfredo
--
gentoo-user@gentoo.org mailing list
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-10-18 12:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15 22:24 [gentoo-user] Permissions, permissions Mick
2007-10-15 22:40 ` [gentoo-user] " Guilherme Amadio
2007-10-17 20:59 ` [gentoo-user] Problems with vlc Alfredo Perez
2007-10-17 21:01 ` Albert Hopkins
2007-10-18 9:49 ` Danis Petkakis
2007-10-18 12:22 ` AW: " Zimmerling, Alexander
2007-10-16 0:20 ` [gentoo-user] Permissions, permissions Allan Gottlieb
2007-10-16 5:42 ` Alan McKinnon
2007-10-16 5:56 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox