LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-16-2008, 12:11 AM   #1
wasimriz
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Post 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
 
Old 08-16-2008, 01:34 AM   #2
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 301

Rep: Reputation: 32
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.
 
Old 08-16-2008, 01:38 AM   #3
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 301

Rep: Reputation: 32
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.

Last edited by checkmate3001; 08-16-2008 at 01:40 AM.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is uid and gid rmanocha Linux - Software 9 08-19-2008 12:03 AM
swet gid kampow Linux - Newbie 2 07-25-2006 07:35 PM
set gid linuxtesting2 Solaris / OpenSolaris 2 06-18-2006 03:18 PM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
Changing GID in X dxdad Linux - Software 2 03-22-2004 09:45 AM


All times are GMT -5. The time now is 03:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration