![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HP-UX usermod remove secondary groups | Ikon | Shell Programming and Scripting | 2 | 03-10-2009 06:17 PM |
| Usermod returning syntax error | syndex | Shell Programming and Scripting | 6 | 07-02-2007 12:38 PM |
| Help required for usermod command | gun | UNIX for Dummies Questions & Answers | 1 | 11-28-2006 05:45 AM |
| help interpreting usermod man page | amheck | SUN Solaris | 0 | 06-08-2006 03:29 PM |
| usermod -e | amheck | UNIX for Dummies Questions & Answers | 1 | 05-23-2006 07:02 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
usermod vs rolemod
Hello,
I'm a bit confused by the usage of those two commands. I have 2 freshly installed systems and the behaviour is different from one system to another. Code:
root@systemONE rolemod -G mygroup postgres UX: rolemod: ERROR: Users most be modified with ``usermod''. root@systemTWO usermod -G mygroup postgres UX: usermod: ERROR: Roles most be modified with ``rolemod''. Thanks, Tex Last edited by Tex-Twil; 07-13-2009 at 11:09 AM.. |
|
||||
|
What it look like that in one box postgres is a role and in other system it a group name. The best option is to check the /etc/group and see if the it postgres. Also, in case if myuser is a user and if you are trying to add user to the group postgres then the command usermod syntax is wrong.
If you know nay user is part of a given role then use the command roles <username> to fine the roles assign to an individuals |
|
||||
|
Quote:
Quote:
Tex |
|
||||
|
On the system where you are getting error message as “UX: usermod: ERROR: Roles most be modified with ``rolemod''. Please check the file /etc/security/prof_attr and /etc/security/auth_attr and see if you can get any line related to postgres
|
|
||||
|
Quote:
Quote:
Code:
~$ usermod -G mygroup postgres UX: usermod: ERROR: Roles most be modified with ``rolemod''. Thanks, Tex ---------- Post updated 07-14-09 at 04:22 AM ---------- Previous update was 07-13-09 at 10:51 AM ---------- I think I found the command I needed: Code:
# auths postgres solaris.smf.manage.postgres,solaris.smf.value.postgres,solaris.device.cdrw,solaris.profmgr.read,solaris.jobs.users,solaris.mail.mailq Is that correct ? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|