Everytime login subject in the UID name changes sometimes root sometimes the user name x on CentOS
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Everytime login subject in the UID name changes sometimes root sometimes the user name x on CentOS
Hi,
I am a new user for the Linux CentOS operating system. And now I'm having a problem on the server with the CentOS release 6.7 Linux OS.
I intend to add a new user with the name systemadm23, and I want to make that user have privileges at the root level so I made it in the etc / passwd like this:
servercentos: ~> cat / etc / passwd | grep systemadm23
systemadm23: x: 0: 0: Emergency User, Security Management: / home / systemadm23: / bin / sh
servercentos: ~>
But when I login using the user as root, why when I type "id" appears like this: servercentos: ~> id
uid = 0 (systemadm23) gid = 0 (root) groups = 0 (root)
it should be like this "uid = 0 (root) gid = 0 (root) groups = 0 (root)" ??
Please help, because when I want to login using root, uid sometimes changes.
note: please forgive me if there is a way of posting from me that is not appropriate
You are going about this totally the wrong way. UID must be unique, you can't just give another user the UID of 0 and expect it to work.
You need to create your new user as a normal user and then read up on sudo / [/b]sudoers[/b] to allow the user to execute commands at an elevated privilege.
Alternatively you can add the user to the group wheel, again, go read up on sudo/sudoers and things may become clearer.
@TenTenths
Yes, I know. It's not properly way. But it's needed to run specifically application. User systemadm23 will be use for administrator user account of application, and the system of the application will be using it.
In operating systems Linux Suse, I face a similar case too. But, it's have solved after I custom on the sudoers file like what you said.
And I have try to do the same in this Linux CentOS but it's make the application failed to integrate a service to the target server (Linux CentOS).
Any other solution?
@ondoho,
it's needed to run specifically application. User systemadm23 will be use for administrator user account of application, and the system of the application will be using it.
it's needed to run specifically application. User systemadm23 will be use for administrator user account of application, and the system of the application will be using it.
"specific application" is not an explanation of what you want to achieve.
but i guess tentenths is right, you need to set up sudo instead of creating a new root user.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.