Change the default group of a user | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Change the default group of a user

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-18-2013
Anupam_Halder Anupam_Halder is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 26 August 2014, 12:25 PM EDT
Posts: 77
Thanks: 45
Thanked 0 Times in 0 Posts
Change the default group of a user

Hi ,

for user test we have 3 groups.

1. test
2. dba
3. qa

by default the group it test. How can I change the default group to dba?
Sponsored Links
    #2  
Old 01-18-2013
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 2 September 2014, 4:30 PM EDT
Location: Zürich
Posts: 8,473
Thanks: 330
Thanked 1,046 Times in 913 Posts
Which OS?

usermod is typically available on most OS's, but without knowing your OS, we can't say which command you should use.
Sponsored Links
    #3  
Old 01-18-2013
Anupam_Halder Anupam_Halder is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 26 August 2014, 12:25 PM EDT
Posts: 77
Thanks: 45
Thanked 0 Times in 0 Posts
uname -a returning this result


Code:
Linux ***************** 2.6.18-238.12.1.el5 #1 SMP Sat
May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux


Hostname removed. Also usermod not working. And I don't have the root privilege.
    #4  
Old 01-18-2013
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 2 September 2014, 4:30 PM EDT
Location: Zürich
Posts: 8,473
Thanks: 330
Thanked 1,046 Times in 913 Posts
If you don't have root privileges, then you'd better ask someone who has
Sponsored Links
    #5  
Old 01-18-2013
Anupam_Halder Anupam_Halder is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 26 August 2014, 12:25 PM EDT
Posts: 77
Thanks: 45
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Scott View Post
If you don't have root privileges, then you'd better ask someone who has
but the user is already into that group .. I just want one of change the default one.. still need the root access?

Thought it can be done without root access. Seems like need to raise ticket for the same to unix admin and have to wait for their SLA
Sponsored Links
    #6  
Old 01-18-2013
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 2 September 2014, 4:30 PM EDT
Location: Zürich
Posts: 8,473
Thanks: 330
Thanked 1,046 Times in 913 Posts
You might be able to use newgrp but that is only a temporary change.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Default user:group permissions while creating files and directories sunnysthakur Linux 3 09-08-2012 03:46 PM
How to change default group? appualex UNIX for Advanced & Expert Users 5 10-20-2010 08:30 AM
How to change Default Shell for any user? lalit21984 UNIX for Dummies Questions & Answers 1 03-10-2010 04:15 AM
AIX user ID and group ID change sacguy08 UNIX for Dummies Questions & Answers 2 11-12-2009 11:04 AM
Find all files with group read OR group write OR user write permission shunter63 Shell Programming and Scripting 5 01-14-2009 12:06 PM



All times are GMT -4. The time now is 07:48 PM.