Tagged Questions
7
votes
1answer
214 views
How to stop users from Switching to Root user
I have disabled the root user login from Sshd.conf file so now no one can login using root user even if they know the password SOMEHOW.
Now I have 3 users in server ROOT,EMERG and ORACLE. I want to ...
0
votes
1answer
135 views
SSH minimal rights user - su only [duplicate]
Possible Duplicate:
Creating a UNIX account which only executes one command
I am trying to setup a user account that only has as minimal rights as possible.
The user should be able to log ...
0
votes
2answers
347 views
How to suppress su authentication failure warning?
I created an account "diag" and set it as expired (usermod --expiredate 1). Then I have a script which I want to run to log into it, so in the script I use the following command:
su -s /bin/bash - ...
0
votes
2answers
815 views
Avoid asking password if `su -m user command` is used under `user`?
If I run the script containing su -m user service userservice start under root user, I do not need to enter the password. But when I run it under user user, it asks passwords all the time. That really ...
2
votes
4answers
427 views
Allow paswordless user to change to another passwordless user
I have two users dev and tomcat neither of them have a password.
How can I allow dev 1 do su - tomcat without having him having to enter any credentials?
1 connects with ssh keyfile
1
vote
2answers
2k views
Changing user in a script?
I am trying to change user in order to execute a specific command during startup. It fails silently and apparently the userchange isn't carried out as I can tell that the command isn't executed.
What ...
5
votes
3answers
890 views
Changing the UID of files in /proc
In a follow up to this question about changing the UID of a user, it is recommended to change the ownership of all files on the system (this answer)
find / -uid 1000 -exec chown 5000 '{}' \+
where ...
4
votes
1answer
307 views
Why do I need to use newgrp or su (or logout and login again) to have new group memberships applied?
What is it that makes new group membership require a new login (or new login shell as started by su or newgrp) to be visible?
Just running another bash (or whatever other shell) instance with --login ...
3
votes
2answers
660 views
How to trace a process to original user?
Say, on a Solaris server, user1 logs in, switches to someother user, say sruser, using su - and then starts a process of id X. And then another user user2 logs in, switches to sruser the same way and ...