LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2006, 04:21 PM   #1
xuanadoo
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
apparent group member can't access directory


Using a SuSE 9.1 system, I'm logged in as rich, who belongs to the group users. Though I've tried to set group for a directory to users and the access for that group to rw, members of that group (e.g. rich) are unable to access the directory ('permission denied' message). Some current info from the console showing the fstab file and 'windows' directory that is a target:

**************************************************************************************************** *******

rich@beer:~> cat /etc/fstab

/dev/hda1 / reiserfs acl,user_xattr 1 1
/dev/hda3 /windows/C vfat users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/hda5 /windows/E vfat users,gid=users,umask=0002,iocharset=utf8,suid 0 0
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvd /media/dvd subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0
/dev/hdc5 /xtra reiserfs defaults 1 2
/dev/hdc1 /windows/D vfat umask=000 0 0

rich@beer:~> ls -l /

total 200
drwxr-xr-x 2 root root 2864 2005-05-20 16:02 bin
drwxr-xr-x 3 root root 520 2005-05-10 11:03 boot
drwxr-xr-x 34 root root 180568 2006-09-14 12:29 dev
drwxr-xr-x 61 root root 6392 2006-09-14 12:53 etc
drwxr-xr-x 4 root root 104 2006-09-13 17:08 home
drwxr-xr-x 12 root root 3096 2005-05-20 16:01 lib
drwxr-xr-x 5 root root 128 2004-04-06 09:04 media
drwxr-xr-x 2 root root 48 2004-04-06 09:04 mnt
drwxr-xr-x 8 root root 224 2006-03-16 10:33 opt
dr-xr-xr-x 91 root root 0 2006-09-14 05:28 proc
drwx------ 35 root root 1728 2006-09-14 13:33 root
drwxr-xr-x 3 root root 7752 2005-05-20 16:02 sbin
drwxr-xr-x 4 root root 96 2005-05-10 10:51 srv
drwxr-xr-x 8 root root 0 2006-09-14 05:28 sys
drwxrwxrwt 61 root root 2664 2006-09-14 14:15 tmp
drwxr-xr-x 12 root root 344 2005-05-10 10:58 usr
drwxr-xr-x 14 root root 360 2005-05-10 10:53 var
drw-rw---- 5 root users 192 2006-03-31 10:01 windows
drwxrwxrwx 21 rich users 552 2006-06-26 02:35 xtra

rich@beer:~> groups rich

rich : users uucp dialout audio video

rich@beer:~> id

uid=1000(rich) gid=100(users) groups=14(uucp),16(dialout),17(audio),33(video),100(users)

rich@beer:~> cd /windows

bash: cd: /windows: Permission denied

**************************************************************************************************** *****

Where have I errored?

rich
 
Old 09-14-2006, 05:36 PM   #2
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
All directories have to have the executable bit set.
(Just the way it is)

Code:
OWNER  GROUP   WORLD
r w x  r w x   r w x 
1 1 1  1 0 1   1 0 1 
  7      5       5  
  |______|_______|
         |   
        755
drw-rw---- 5 root users 192 2006-03-31 10:01 windows

chmod 770 /windows should work

or mebbe 771...

You can change permissions once inside the directory to remove the x.

Last edited by alar; 09-14-2006 at 05:41 PM.
 
Old 09-14-2006, 08:02 PM   #3
Leisy
Member
 
Registered: Sep 2006
Location: Brno, Czech Republic
Distribution: Fedora
Posts: 56

Rep: Reputation: 15
Yes, you should set also X (executable for files, accessible for directories), check that in man chmod
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux mobile phones group adds member LXer Syndicated Linux News 0 07-25-2006 02:21 AM
Is there a command to show the the member(s) of a group? Akhran Linux - Newbie 3 02-13-2006 04:34 AM
no access to devices with group access rights flipper333 Debian 2 12-28-2004 09:25 AM
Member of local and remote group at the same time? xtrax Linux - General 3 12-20-2004 07:36 PM
chmod for a group on a certain directory? mfeoli Linux - Newbie 1 02-10-2004 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration