LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-17-2004, 04:49 PM   #1
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Changing user's group?


I have a number of members on my server that upload stuff via ProFTPD. So everybody has an actual account on my server. When I added the usernames, I didn't specify a group to assign them, so they were all given groups named after their username. Is there a command I can put in that'll assign everyone to the group "users"? I know a single user can be in a bunch of groups, but "users" is the only one that I want 'em all to be in. This is in RH9, by the way.

Thanks!
 
Old 06-17-2004, 05:34 PM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi.

Yeah you can do this by doing this as root....

usermod -g users username1
usermod -g users username2

etc. etc.

Is this what you were after?

Good luck.

>Craig
 
Old 06-18-2004, 04:30 AM   #3
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Sweet - that's just what I was looking for, thanks!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change a user's primary group? Akhran Linux - Newbie 4 03-19-2010 08:54 PM
Changing user's home directory? HOW barton Debian 10 04-04-2005 02:27 AM
Changing a user's group at login depending on the time of day Steve2001 Linux - General 10 10-11-2004 03:29 AM
Script to set different quota depending on User's Group ID TechNett Programming 6 08-09-2004 02:45 PM
Changing a user's default group dogn00dles Linux - Security 4 07-09-2003 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration