Somewhat inspired by this other question on the use of the term “Super User”, why the heck is the most powerful user on a Unix/Linux system called root? Why not admin, sysop, base, king or something similar? When I read the term root all I think of…
On all the Linux systems I've managed, the root account has a GID and UID of 0. Is this guaranteed, or is it possible that the system will give root a different ID?
I installed SSH, but I found if I use my original account to login to Ubuntu, it has too many permissions.
I want to constrain the user to only have permissions for specific folders in Ubuntu. How can I configure such a user?
Is there a way to make part of a script run as a different (non-root) user? If it helps , the part to be run as a different user occurs at the end of the script
Edit :
OS -> Ubuntu 9.04
I have multiple text console session open and log in as different users into different consoles. I forget after while which consoles belong to which user, it would be nice to not have to quit and log back in.
How do I see which user I am logged in…
What's the easiest way to determine the logged on user in Windows XP (without loading any support tools)? I'm looking for something similar to the 'whoami' command but for Windows. I need something that'll display the domain and username.
I just finished the install and setup process of systemd on my arch-linux system (2012.09.07). I uninstalled initscripts (and removed the configuration files).
What I want to do is create a service that can be started and stopped by a non-root user.…
I need to rsync a directory to a remote server so that all files belonging to user X and group Y on the source (local) machine are mapped to user W and group Z on the destination (remote) machine. If possible by using ssh as the transport, but if I…
I have a redhat linux server running jenkins. I setup jenkins as per the instructions mentioned here https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions The problem is that I need to switch to the jenkins user in…
EDIT: Putting exactly what was done.
I need to SSH to localhost without a password, the usual way of doing it (with public keys) do not work.
user@PC:~$ rm -rf .ssh/*
user@PC:~$ ssh-keygen -t rsa > /dev/null
Enter file in which to save the key…
I have several network shares and created user accounts for the people who want to access them on my computer, so I can give every user different access rights.
My only problem is, these users are cluttering my login screen. I want my default user…
I need to run some command lines as particular user in a shell script.
I've found (at least) two way:
su user -c 'command'
runuser -l user -c 'command'
Is there a significant difference between this two commands?
This user was created using this command:
sudo adduser --system --home=/opt/user --group user
But now I want that user to be able to login. I can become that user using sudo, but also would like to directly log in using password.
I tried using this…
I am a root user, and suppose I want to run any application as another user. Is this possible, without switching to another user?
Something like
# google-chrome user=abc
I am actually executing a CLI program as a non-root user. I have set the…
I have a machine running Windows 7 which I set up a long time ago to autmatically log into Windows.
That's still working fine, but how can I work out the username of the currently logged-in user when I'm sat at the desktop?