I have a new job and I need change the last user administrator, I dont know if is easier change some things about this user or add my user in the group with every permission, how can I do it. I dont know which is the group. I think is no only useradd en after modify /etc/passwd.
I need to create a new root user with all permissions as an administrator but the root user already exists with this identification card but I want to change the number of that card for my number and change the password. Or the other would create a new user.
How can create one administrator user? and password? tanks
---------- Post updated at 02:52 PM ---------- Previous update was at 02:50 PM ----------
# cat /etc/release
Solaris 10 8/07 s10s_u4wos_12b SPARC
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 August 2007
There are several ways to do it. Which one to use depends on the reason why you need a different account than root and what privileges you want to grant to it.
If you have the previous administrator's root password, why not do a "passwd" to change the password then? Isn't it easier? why would you need/like to have 2 root accounts?
I was need it, because tha past administrador had a acount with his name so I was need change for my name or my id and I didn�t know user group, you know how can I search the group for an user?. or how can you add new user in the system?
Tanks Solaris_user, but I have this problem what do you thing, you can see the long is the same first user like second user and I logged in root.
root@admin # useradd -d /export/home/z7895214 -m -d /bin/tcsh -g root z6541236
UX: useradd: z6541236 name too long.
UX: useradd: WARNING: z6541236 has no permissions to use /bin/tcsh.