I would like to make a comment here. It's off the topic though.
Although I'm just another user of the forum, not a moderator/admin, I would request posters not to be harsh as not all of the people who post here have English as their first language. Please be patient. Thanks.
It is not a recommended practice but yes, multiple users can share the same userid. You can have multiple entries with the same user id, but different home directories, gecos, shells and password. However, technically, they would be the same user for the kernel and for all commands.
Quote:
Can we give root permissions to normal user like admin.s ? If YES give me full details (syntax of sudo/RBAC)
sudo is not part of Solaris 10 and older. Should you want to give a user full root permissions, grant him/her the primary administrator profile.
or have the following line in /etc/user_attr
@admin_xor- the policy here is definitely one of do not be rude. However I suspect that ESL (English as a second language) holds for all of the posters in this thread. This means that people who behave brusquely by someone else's standards may be called on it.
There is a strong cultural component to behavior and the perception of behavior. Which, IMO, is good thing as long as it doesn't create flame wars. We cannot enforce "internet manners" - what Juan B was complaining about.
FWIW, posters who are abusive are tracked, warned, and if necessary, banned. Nothing I see in the thread warrants anything even remotely like that on the part of anyone here.
Keep up the good work, everyone.
And. Multiple human users with the same uid is a horrible idea. It is a problem waiting to happen. My perception is that the OP should use a group approach like the rest of us all do. Most application software makes implicit assumptions about the uniqueness of the uid.
When that assumption is violated really bad things can happen. And if there is an application that mandates a common uid, each user should be able to become a single special username to accomodate the app. Not the other way around.
Last edited by jim mcnamara; 05-12-2012 at 10:02 PM..
It is not a recommended practice but yes, multiple users can share the same userid. You can have multiple entries with the same user id, but different home directories, gecos, shells and password. However, technically, they would be the same user for the kernel of for all commands.
sudo is not part of Solaris 10 and older. Should you want to give a user full root permissions, grant him/her the primary administrator profile.
or have the following line in /etc/user_attr
If you are going to use RBAC, remember to use a privilege shell like pfsh, pfcsh or pfksh... otherwise you won't be able to use the auths / profiles
or simply prefix the command by pfexec, which makes it similar to sudo.
---------- Post updated at 10:43 ---------- Previous update was at 10:02 ----------
Quote:
Originally Posted by jim mcnamara
And. Multiple human users with the same uid is a horrible idea.
Agreed. I suspect the OP is not looking to human users sharing an uid but investigating aliasing root, i.e. a technical account. Creating root aliases is a practice I have no particular problem with, especially for a limited period of time. Allowing direct root login in the first place is more of an issue. The (slow) trend is to forbid that to happen and enforce using either sudo or rbac. With Solaris 11, root is by default a role. Solaris 10 can be configured the same way.
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made.
1. The problem statement, all variables and given/known data:
The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
Hi, guys. I need help on some expect problem.
#!/usr/bin/expect
set user
set password
set newuser
spawn telnet x.x.x.x
expect login*
send “root\r”
expect Password*
send “123546\r”
send "useradd $newuser\r"
send "exit\r"
interact
I can add 1 user using expect script, but how do I... (1 Reply)
I need to list users in /etc/passwd with root's GID or UID or /root as home directory
If we have these entries in /etc/passwd
root:x:0:0:root:/root:/bin/bash
rootgooduser1:x:100:100::/home/gooduser1:/bin/bash
baduser1:x:0:300::/home/baduser1:/bin/bash... (6 Replies)
hi,
i am new to shell scripts
i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Hello,
I created a new user "rootNew"
After creation I manually change the file /etc/passwd and gave the new user "rootNew" uid 0.
Now I have 2 users with uid 0 (root,rootNew) how can I know which user is log in the system?
"whoami" command return "root" for both users.
Thanks,
Uri (10 Replies)
Hello,
I created a new user "rootNew"
After creation I manually change the file /etc/passwd and gave the new user "rootNew" uid 0.
Now I have 2 users with uid 0 (root,rootNew) how can I know which user is log in the system?
"whoami" command return "root" for both users.
Thanks,
Uri
No... (0 Replies)
Hi, I want to write a script to check whether an user ID is used in my server and then create that user.
If the user ID is not used, I will echo something like "OK, continue" and then continue to execute the script. Else, I will echo something like "Used, exit" and then exit the script.
As... (4 Replies)
Hello,
I am not the AIX guru..
This might seem simple for a lot but I am not sure where to start.. So here is my question:
I have a unix account on a remote site. My UID is 999999.
Now I need to create my account at my main site, with the same UID. So i have to make sure the UID 999999 is... (1 Reply)