Questions tagged [user]

A user is a person who uses a computer or network service.

A user is a person who uses a computer or network service.

313 questions
90
votes
2 answers

Why is the most powerful user on a Unix/Linux system called “root?”

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…
Giacomo1968
  • 58,727
87
votes
4 answers

Does the root account always have UID/GID 0?

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?
Tanaki
  • 1,487
86
votes
4 answers

Create an SSH user who only has permission to access specific folders

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?
Foolish
  • 1,969
58
votes
8 answers

Run part of a bash script as a different user

I am in Ubuntu 9.04. 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.
46
votes
4 answers

how do I see which user I am logged in as in MySQL?

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…
nelaaro
  • 14,139
  • 30
  • 88
  • 115
25
votes
6 answers

How to determine logged on user in Windows XP?

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.
Mark
  • 3,177
23
votes
5 answers

How to arbitrarily map user/group ownerships in rsync

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…
matteo
  • 4,559
23
votes
1 answer

How do I setup a systemd service to be started by a non root user as a user daemon?

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.…
Hans
  • 335
21
votes
3 answers

Cannot switch to jenkins user redhat linux

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…
17
votes
8 answers

How to SSH to localhost without password?

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…
Canesin
  • 309
15
votes
3 answers

linux - enabling system user to login?

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…
Andrius
  • 647
14
votes
2 answers

Difference between su -c and runuser -l -c

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?
Getz
  • 343
  • 3
  • 4
  • 15
13
votes
4 answers

Hide user from login screen without deactivating it

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…
cody
  • 599
11
votes
2 answers

How to view total CPU and memory usage of per system user in Linux

I know the top command to see the process of CPU and memory usage, but some users of the system can generate a lot of processes, if I wanna know total CPU and memory usage of an user,I must count it by my own,so,is there a command which can view…
prince
  • 109
11
votes
4 answers

Is it possible for root to execute a command as non-root?

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…
1
2 3
20 21