LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   group permissions: touch: cannot touch `filename': Permission denied (https://www.linuxquestions.org/questions/linux-general-1/group-permissions-touch-cannot-touch-%60filename-permission-denied-653627/)

bartonski 07-04-2008 03:34 PM

group permissions: touch: cannot touch `filename': Permission denied
 
I have two users set up on my system: 'tiger' and 'photos'. The user 'tiger' is a member of group 'photos':

Code:

$ groups tiger
tiger : tiger photos

I have set the home directory for 'photos' to give group read, write and execute access. ls -l from /home yields:

Code:

drwxrwxr-x  16 photos  photos  4.0K Apr 28 23:35 photos/
logged in as user 'tiger', I expect that I should be able to create files or directories in /home/photos because I have given write access to the group 'photos' and tiger is in this group. However, when I change working directory to /home/photos and try to touch the file 'foo' (which does not exist), I get:

Code:

$ touch foo
touch: cannot touch `foo': Permission denied

what gives?

bartonski 07-04-2008 03:44 PM

problem solved.
 
'group' for current login is set at login time; logging in again using 'su - tiger' solved the problem. See the following link for details:

http://www.linuxquestions.org/questi...-setup-602029/

jonathanes 11-27-2008 09:23 AM

Thanks!
 
Found this via Google and it helped me out :study:


All times are GMT -5. The time now is 07:49 PM.