[SOLVED] Everytime login subject in the UID name changes sometimes root sometimes the user name x
SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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
Hi,
I am a new user for the Linux SUSE operating system. And now I'm having a problem on the server with the SUSE Enterprise Server 11 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:
serversuse: ~> cat / etc / passwd | grep systemadm23
systemadm23: x: 0: 0: Emergency User, Security Management: / home / systemadm23: / bin / sh
serversuse: ~>
But when I login using the user as root, why when I type "id" appears like this: serversuse: ~> 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.
The proper way to deal with this sort of problem is to create a normal user with his own UID and then use sudo to give him full rights without needing to use a password. Two users with one UID (especially if it's UID 0) is a recipe for trouble.
Doing it that way through a group works well on a home system. But on an office server, you might want to have members of the wheel/sudo group with enhanced but still restricted rights: for example, the right to shut down or reboot the system but not to do updates. That's why I think it would be better to do it through an individual user as suggested by the OP. Only via sudoers and not by conflating two users with a single UID!
So you have 2 users root and systemadm23 with the same UID ?
That seems extremely weird and inappropriate.
lougavulin,
Yes, I have 2 user with UID=0. Because it's needed, user systemadm23 is use for specifically one application (requirement need user equivalent with root).
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. So, it can't via sudoers.
you can specify within sudoers file, as well using #includedir /etc/sudoers.d
BW-userx,
Thanks for the link, finally the uid not changing again. The article of the link help me for the problem, and I just change the configuration on the application too that can make the application can run the systems using sudoers's 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.