LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-04-2008, 03:34 PM   #1
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 47
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?
 
Old 07-04-2008, 03:44 PM   #2
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Original Poster
Rep: Reputation: 47
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/
 
Old 11-27-2008, 09:23 AM   #3
jonathanes
LQ Newbie
 
Registered: Nov 2008
Location: Oxfordshire, UK
Distribution: RHEL5
Posts: 1

Rep: Reputation: 0
Thumbs up Thanks!

Found this via Google and it helped me out
 
  


Reply

Tags
group, permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
One Touch backup versus One Touch II q6supvr Linux - Software 4 12-16-2007 08:28 PM
LXer: Touch Drivers: Elo Offers New Touch Drivers For Linux And Mac OS LXer Syndicated Linux News 0 08-29-2006 12:54 PM
touch: cannot touch `/var/log/mysqld.log': Permission denied massoo Linux - General 1 08-01-2006 01:56 AM
mv won't accept my filename, so I can't touch it... (echo, tr and more too) ender42 Ubuntu 3 02-23-2006 09:44 PM
Error - can't touch touch: /var/lock - filesystem problem? xanas3712 Linux - Newbie 0 05-10-2004 05:26 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration