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.

307 questions
88
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
  • 53,069
  • 19
  • 162
  • 212
83
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,397
  • 2
  • 12
  • 13
82
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,899
  • 4
  • 19
  • 21
52
votes
6 answers

Run part of a bash script as a different 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
Manish Mathai
  • 849
  • 2
  • 8
  • 12
44
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
  • 13,149
  • 30
  • 84
  • 111
24
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,149
  • 9
  • 36
  • 39
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
  • 1
  • 2
  • 8
22
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,199
  • 6
  • 20
  • 22
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…
OrwellHindenberg
  • 338
  • 1
  • 2
  • 7
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
  • 1
  • 2
  • 9
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
  • 569
  • 2
  • 6
  • 15
12
votes
1 answer

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
  • 331
  • 3
  • 4
  • 15
11
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
  • 597
  • 5
  • 12
  • 26
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…
adnan kamili
  • 461
  • 1
  • 6
  • 18
11
votes
5 answers

How can I work out which user is currently logged into a Windows 7 machine?

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?
Jon Cage
  • 2,499
  • 11
  • 38
  • 47
1
2 3
20 21