vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Fedora is giving me some grief. Whenever I modify a user's group, like adding them to a new group, they are removed from the previous group they were in. The syntax I'm using is: usermod -G "group name" "user name", any thoughts? I do not want to edit the text file directly. |
| |||
| On 13 Jul 2004 12:02:51 -0700, morrisf5 <morrisf5@comcast.net> wrote: > > > Fedora is giving me some grief. Whenever I modify a user's group, like > adding them to a new group, they are removed from the previous group > they were in. The syntax I'm using is: usermod -G "group name" "user > name", any thoughts? > I do not want to edit the text file directly. (debian here) Do you have adduser? adduser [options] user group # I've never needed any options. Usermod is installed on my box but I've never used it. AC |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 morrisf5 wrote: > Fedora is giving me some grief. Whenever I modify a user's group, like > adding them to a new group, they are removed from the previous group > they were in. The syntax I'm using is: usermod -G "group name" "user > name", any thoughts? The -G option takes a list of /all/ supplemental groups the user is to belong to. If you only name /one/ group to usermod -G, then the user is taken out of all supplemntal groups, and placed in the /one/ supplemental group you name. If you want a user to remain in all their existing supplemental groups, and /add/ another group to that list, you'll have to usermod -G group,group,group,new_group or edit /etc/group directly > I do not want to edit the text file directly. USERMOD(8) USERMOD(8) NAME usermod - Modify a user account SYNOPSIS usermod [-c comment] [-d home_dir [-m]] [-e expire_date] [-f inactive_time] [-g initial_group] [-G group [,...]] [-l login_name] [-p passwd] [-s shell] [-u uid [-o]] [-L|-U] login DESCRIPTION The usermod command modifies the system account files to reflect the changes that are specified on the command line. The options which apply to the usermod command are: ... -G group,[...] A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option. If the user is ============== currently a member of a group which is not listed, ================================================== = the user will be removed from the group ======================================= - -- Lew Pitcher, IT Consultant, Enterprise Application Architecture Enterprise Technology Solutions, TD Bank Financial Group (Opinions expressed here are my own, not my employer's) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) iD8DBQFA9DzxagVFX4UWr64RAsaiAJ4yetLwqY1pmKElN1vUro TX57cO9QCZAWFY kyEniPCBo2x9KFeEUrMERgc= =WMR2 -----END PGP SIGNATURE----- |
| ||||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message In comp.os.linux.setup Lew Pitcher <Lew.Pitcher@td.com> suggested: > morrisf5 wrote: [..] > If you want a user to remain in all their existing supplemental groups, > and /add/ another group to that list, you'll have to > usermod -G group,group,group,new_group The sad thing about usermod.;( > or edit /etc/group directly Yep, just use 'vigr'. -- Michael Heiming (GPG-Key ID: 0xEDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFA9GlPAkPEju3Se5QRAk+xAJ4pWeUfoKAAOtq7aKfsTP Wpw6PMEwCgp/Xd 6ViEJFXaG/HINahb1Wy7nLQ= =60Qc -----END PGP SIGNATURE----- |
| Thread Tools | |
| Display Modes | |
|
|