For questions related to users, user accounts, user permissions or guest accounts.

learn more… | top users | synonyms (1)

229
votes
7answers
345k views

Add user to existing Group

I want to add the Apache user (www-data) to the audio group. I've read the man page for useradd, but I'm not having any luck. I'm running xubuntu 11.10. Here's what I'm doing: $ sudo useradd -G audio ...
129
votes
18answers
44k views

Why is it bad to login as root?

I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. ...
71
votes
5answers
247k views

How to manage users and groups?

Just switched from 10.04 to 11.10. I'm wondering about the limited options in the GUI for managing users and groups. Where is the old GUI to change groups, id's, etc. I know that I can do this from ...
70
votes
10answers
325k views

How do I kill processes in Ubuntu?

How do I kill all processes running by my own non-root account? I have some spinning smbd processes that I caused from my windows machine and so I telnetted into the linux server and I want to kill ...
65
votes
5answers
390k views

How to enable root login?

I would like to enable the root account on my Ubuntu installation. I realize the security implications of this.
56
votes
4answers
49k views

What is the purpose of the 'nobody' user?

After I read List all human users I noticed that there is a user account named 'nobody' in my Ubuntu system. Also I noticed that I can login in this account from terminal using the following command ...
52
votes
4answers
96k views

How to remove a user from a group?

I added a user account to the admin group and discovered I added wrong user. So I now have to remove the account from the admin group. How can I remove an account from a group without deleting the ...
42
votes
5answers
74k views

How to add user without /home

I want to create a new user to run a service on the system but don't want to have /home and other configuration files for it. Like there is a user for postgres but it doesn't have any /home directory. ...
39
votes
5answers
183k views

Create a new SSH user on Ubuntu Server

Just created a new virtual Ubuntu server and I'm in the process of hardening it for production use. I currently have a root account. I want to do the following: Create a new user (let's call them ...
33
votes
5answers
12k views

How to NOT become a root user? Are administrators root?

I installed Ubuntu on my PC. To log in, I use the username and password I created during installation. Does this mean I am a root user? If yes, then how do I become non-root? It looks like non-root ...
31
votes
5answers
98k views

How to make user home folder after account creation?

I created a new user with useradd name and forgot to use -d -m to create their home directory. I tried making one, copying the contents of /etc/skel, and chowning everything to the new user. ...
31
votes
1answer
643 views

Restore man user

For some dislexic reason (or haven't slept enough) I typed deluser man instead of the more common man deluser ... as you can imagine, I just deleted man user! Never happened before... How can I ...
30
votes
7answers
67k views

Home directory not being created

I am trying to understand system administration on Ubuntu. So, as an example, I create a dummy user using sudo useradd -d /home/linda linda and passwd to create the password. I check that an entry ...
30
votes
1answer
68k views

How to display all user and groups by command

I want to display 1. All users and 2. All groups in my pc by using command-line. users and groups displays users currently logged and groups a user is in respectively. How to display List of all ...
30
votes
4answers
45k views

Simple & easy way to jail users

I need a simple and easy way to jail users in their home directories in Oneiric. Do you have a simple configuration for jailing users, with full help, or some good web links? I would be offering an ...
28
votes
6answers
78k views

Move home folder to second drive

I have 2 HDD drives in my computer. At the moment second drive is mounted as /media/storage. How can I move my user data from /home to /media/storage/home? Can I just move the data over there and ...
28
votes
1answer
15k views

Force the user to change their password at first login

When I add a new user to my system I set a password and tell it to the new user. If the user doesn't like it, he/she can change it. However in my opinion it is better to force the user to change ...
25
votes
6answers
80k views

Can I set my user account to have no password?

If I attempt to change my password to nothing by opening "User Accounts", the "Change" button remains greyed out: How do I change my password to be empty? I know you can set Ubuntu to automatically ...
23
votes
1answer
2k views

Why is there a man entry in /etc/passwd

I've noticed that there is an entry for the man user in my /etc/passwd file. What is the purpose of this user? man:x:6:12:man:/var/cache/man:/bin/sh
22
votes
8answers
67k views

How can I find out my user name?

How do I know my username? I've installed Ubuntu, but I don't know my username, only my password. I can't access my laptop and it can't be opened.
22
votes
4answers
58k views

Change owner of internal hard drive partition from root to user

I have a number of drives internal and external. Some are partitioned. Most mount automatically at boot (all did at one point). One partition is owned by root and therefore does not mount ...
22
votes
1answer
134k views

Give user write access to folder [duplicate]

How do i give the user 'testuser' write privileges on the folder: /var/www/test/public_html
20
votes
3answers
73k views

How to give nopasswd access to multiple commands via sudoers?

Below is what I know: I have to add this below line in sudoers file to give rights to the user for particular task. user_name ALL=NOPASSWD: /usr/bin/apt-get install In this case I want to give ...
20
votes
1answer
40k views

Can you unencrypt / remove encryption from a user home folder? [duplicate]

Possible Duplicate: How to stop using built-in home directory encryption? During installation I have chosen to encrypt my user's home folder. Can I un-encrypt it? How would I do that? I ...
19
votes
5answers
17k views

Why can other users see the files in my home folder?

I just added a new, underprivileged "desktop user," and I was surprised to discover that it can see the files in my home folder. What is the rational for setting up such lax permissions?
19
votes
1answer
605 views

Is it possible to obtain an e-mail address like myname.surname@ubuntu.com

Being an Ubuntu user for about 3 years, is it possible to obtain an e-mail address like myname.surname@ubuntu.com ?
18
votes
2answers
41k views

How do I give www-data user to a folder in my home folder?

I have a folder: /home/myuser/folderA I want to give www-data user write access to the above, while 'myuser' continues to have normal access (as it is myuser's home folder anyway). Which commands do ...
18
votes
1answer
34k views

Default groups for user in Ubuntu?

Installed HP Linux Imaging and Printing by using install script and something crashed. Now I'm only member of my own group and lp. Which are the default groups for users in for example Ubuntu 12.10? ...
18
votes
3answers
18k views

Logging out other users from the command line

Sometimes when there are too many users logged in it can cause my computer to become very slow and laggy due to low amount of available RAM. I would like to be able to quickly log out the other users ...
17
votes
2answers
24k views

How to delete a user & its home folder safely?

I just created a new user & its home folder & need to delete it now & also I cant find my old user's Downloads,Documents,Pictures,etc folder in /home/olduser & also .Xauthority file. ...
17
votes
2answers
3k views

How can I run anacron in user mode?

I would like to set up a scheduled task via anacron but I would like to do so in user mode. How can I achieve this?
16
votes
1answer
884 views

Get email notification for using 'sudo' by a specific user

I have a server set-up and I let somebody that I trust with a little bit of sudo access have it. However, I also want an email anytime that they use sudo. I know that I can use Defaults ...
15
votes
6answers
31k views

When I add myself “vboxusers” group I an no longer in the “admins” group

I'm using Ubuntu 11.10 and I installed VirtualBox. This required me to add myself to the vboxusers group but when I add myself to vboxusers group I am no longer be in other groups and especially ...
15
votes
2answers
6k views

How do I set up new users with skel

i have on my server a settings i use for all my users. every time i create a new user i have to copy all the settings over and over. for example: .vimrc. .profile .bashrc firefox homepage to our ...
14
votes
5answers
11k views

I deleted the “/etc/passwd” file and cannot log in

I was trying to change my username and also my home directory (/home/username) and my system started to crash. I deleted the passwd file but I had a backup named passwd_bkp. I tried to rename this ...
14
votes
3answers
39k views

Disable sudo permission to user from command line

I have activated root user in ubuntu and want to use ubuntu as server with no DE. For this I want to disable sudo privilege given to first user. How can I do this from command line ? I know I can use ...
14
votes
3answers
10k views

How to run multiple user X sessions on the same computer, at the same time?

I want to have more than one user logged on at the same time, on the same computer. Each user should have a full GUI X session... It's easy enough to log in to multiple concurrent non-X linux ...
14
votes
1answer
352 views

How to change the default programs that are associated with every new user that is created?

I am wondering how one would go about changing the default programs that are associated with every new user that is created. For example, Firefox is the default browser for Ubuntu 11.10. In my user ...
14
votes
3answers
2k views

How do I restrict user bandwidth usage?

I want to restrict each user to 300 gigabytes of internet usage per month. Are there any GUI or command-based tools to manager my users' bandwidth?
13
votes
2answers
19k views

How to run crontab as user:www-data?

My LAMP is setup to work as user:www-data and all files and folders are created with that permissions. I have setup for crontab as user@ubuntu. So i do crontab -e and use this command: */5 * * * ...
13
votes
3answers
24k views

How to enable or disable a user?

I'm uing ubuntu 12.04 desktop. I have 3 users: user1(administrator), user2(standard) and guest. I wanted to disable user1 and enable user2 which auto logs on with no password but after I did that I ...
13
votes
2answers
833 views

What's the purpose of the “bin” group?

Where is it usually used? Where can I read about it, and other often used groups?
13
votes
1answer
34k views

How to change user GID and UID in Ubuntu 13.04?

I need some help changing user GID and UID in Ubuntu 13.04 in order to map an NFS mount, it is my understanding that these need to be the same on local machine as well as LDAP side. Thank you.
13
votes
5answers
20k views

Solving permission problems when using external EXT4 hard disk with multiple linux installs

Hello I have a external hard drive and since I only use Ubuntu and Fedora I decide to format my hard drive to ext4 everything is fine. The problem is when i mount the drive i need to change the ...
12
votes
3answers
10k views

What is the equivalent user for nobody:nobody from CentOS?

I am converting from centOS and am used to having a nobody:nobody user:group for running services. Does Ubuntu have a similar best practice user:group combination for running a service?
12
votes
2answers
5k views

What are the disadvantages of having a dot in a user name?

A student just asked what could be the downside of having a dot (. ) in the name of the user. For example: john.doe How will this affect the system or any apps for that matter?
12
votes
2answers
25k views

Renaming user name

I made a mistake in the username at the time of installation. So I changed the name of the user after logging in by creating a guest account with SUDO rights. But when I checked the list of users ...
12
votes
1answer
2k views

How to find active users in Ubuntu?

With help of the who command we can get active users, I want only the first field such as user 1 user 2 user 3
11
votes
3answers
7k views

How do I change the guest session defaults

I have a quite tunned up gnome desktop and I would like for the guest session to share most of the user settings, this includes: Gtk and Metacity themes. Number of panels, placement and applets. ...
11
votes
1answer
269 views

Create file for new user

I'm creating custom build of Ubuntu with some installed packages. My question is how to put a file on desktop automatically after creating new user? For example something.txt containing some text.