Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
group id (gid)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rxn
n00b
n00b


Joined: 08 Apr 2003
Posts: 23

PostPosted: Mon Apr 28, 2003 6:47 am    Post subject: group id (gid) Reply with quote

question about gid - when setting up my system for ntfs reading support, i was doing the /etc/fstab entry for the windows drive, when i came to the part in the faq about setting gid's for the drive. could someone explain how the gids work? im not sure how to set it so that just my non-root user can access it, not *everyone* ... is there some way to list the groups/gids on a system?
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Mon Apr 28, 2003 9:56 am    Post subject: Reply with quote

hi,

you can list the groups on the system with
Code:
getent group


to allow just one user to use the ntfs mount, you can create a sole group for that user.
name the group like the user and put the user in there, or make it the default group for that user.

christoph
Back to top
View user's profile Send private message
rxn
n00b
n00b


Joined: 08 Apr 2003
Posts: 23

PostPosted: Mon Apr 28, 2003 9:46 pm    Post subject: Reply with quote

ok... how would one go about adding their user to a group? not sure about what command will add groups to a user's perms.
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Mon Apr 28, 2003 10:11 pm    Post subject: Reply with quote

Just edit the /etc/group file
add the user to a group like this
Code:
audio::18:puggy,sarah

this adds puggy and sarah to the audio group

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Wed Apr 30, 2003 12:14 am    Post subject: Reply with quote

hi,

you can also use usermod to modify the groups a user belongs to. this tool does the same like
editing /etc/group manually. but it has some more options. and its more powerful.

Code:
man usermod


christoph
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum