LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Gid (https://www.linuxquestions.org/questions/fedora-35/gid-663115/)

wasimriz 08-15-2008 11:11 PM

Gid
 
Hello!
I'd created one user and his gid i've assign to other user, but still if i'm try to access any directory, i get error permission denied.
eg user rob gid is 555
abd users spike and james gid is 555
but when rob try this command cd /home/spike
it give err permission denied.
i'd applied this permission on spike and james directory
chmod g=u /home/spike and even i'd try out this command also chmod 776 /home/spike
but still i get error

checkmate3001 08-16-2008 12:34 AM

try:
Code:

chown spike:<whatever-group-here> /home/spike
this way the directory is owned by the same group as spike's, rob's and james'.

I would have to see a
Code:

ls -l /home/
to see exactly what the ownerships and permissions were to be sure tho.

checkmate3001 08-16-2008 12:38 AM

You can also make spike rob and james members of the same group while retaining their own primary group. ie:
Code:

user    primary group      secondary group
spike    spike              users
rob      rob                users
james    james              users

It's all in the /etc/group file. But that isn't what the file looks like - that's just a visual example.


All times are GMT -5. The time now is 03:10 AM.