LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grp usr cannot gain access to share dir (https://www.linuxquestions.org/questions/linux-newbie-8/grp-usr-cannot-gain-access-to-share-dir-564463/)

michaeltipton2222 06-25-2007 07:03 PM

grp usr cannot gain access to share dir
 
I am taking a Linux+ class and I am stuck! (Using centos as the linux version) I am to create a directory with "drwxrws--- nobody authors /home/horrorbook" which I did. I used chmod 2770 as my command to get the rws setting in group.) I have a user (sking) set up in the group "authors" already (/etc/group). When I logon as "sking", and try to cd /home/horrorbook (from /home/sking) the error says "-bash: cd: horrorbook: permission denied". I went back and looked, and cannot find anything obvious that might be wrong. Can someone out there help out on this question? I tried reading over the other questions, but they did not seem to deal with this specific type of issue. Thanks. Unfortunately, there is no one available that knows unix down to this level.

manwichmakesameal 06-25-2007 07:40 PM

I just tried to replicate your problem and noticed that a user I excluded from the new group still showed up in that group in /etc/group. You should have done

Code:

development@graceland:~$ chmod 770 test-dir
not
Quote:

I used chmod 2770 as my command
chmod 770 will make it read and writable for owner and group, but no one else will be able to enter.


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