Questions tagged [users]

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

Filter by
Sorted by
Tagged with
752
votes
7answers
1.3m views

How to add existing user to an 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 ...
209
votes
22answers
134k views

Why is it bad to log in 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. ...
189
votes
12answers
1.1m 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 ...
149
votes
5answers
943k 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.
146
votes
2answers
370k views

How can I display all users and groups with a command?

I want to display: All users and All groups in my system using command-line. users and groups commands display users currently logged in, and groups a user belongs to respectively. How to display a ...
128
votes
8answers
519k 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 jim ...
125
votes
4answers
264k 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 ...
123
votes
1answer
664k 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
108
votes
11answers
253k 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 ...
106
votes
6answers
153k 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 ...
105
votes
6answers
391k 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 ...
104
votes
9answers
391k 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.
97
votes
5answers
234k views

How to add a 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.
93
votes
5answers
402k views

How to manage users and groups using GUI?

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 ...
86
votes
3answers
129k 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 ...
75
votes
6answers
230k views

How to make user home folder after account creation? [duplicate]

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. ...
68
votes
6answers
190k 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 ...
63
votes
2answers
194k views

What is the www-data user?

I'm working through How To Serve Django Applications with uWSGI and Nginx on Ubuntu 16.04. At the end of the "Create a systemd Unit File for uWSGI" in the article they discuss the www-data user. What ...
56
votes
6answers
41k views

What is the main difference between chmod and chown?

In some examples, I saw that some used chown instead of chmod. I do not know where to use chmod and chown. Please explain to me the difference between them, when and why I should use either.
54
votes
4answers
78k views

How can I preset aliases for all users?

I have Ubuntu 14.04.2. I want to make it so all users automatically have a specific set of aliases. I have my aliases set in my personal .bashrc, but I don't want to have to manually copy them into ...
53
votes
4answers
134k 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. ...
52
votes
3answers
117k 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 ...
52
votes
4answers
163k views

Renaming user name [duplicate]

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 ...
51
votes
4answers
152k 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 ...
50
votes
7answers
64k views

How to change default user in WSL Ubuntu bash on Windows 10

I installed the WSL Bash on Windows 10 and set my user to e.g. 'abc' but now I want to change it to something else. How can I change the user name of the user I'm logged in as? When I open bash it ...
47
votes
1answer
60k views

Set default group for user when they create new files?

I often find myself chown-ing files as I created them through SSH and they are owned by jm:jm for example. Then to allow Apache to access it, I need to for example do chown jm:www-data. I am sure ...
43
votes
5answers
40k 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 ...
43
votes
5answers
145k 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 ...
42
votes
7answers
38k 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?
40
votes
2answers
41k 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 his/...
38
votes
4answers
72k 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 ...
37
votes
4answers
75k 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 * * * ...
37
votes
1answer
89k views

adding local content in /etc/sudoers.d/ instead of directly modifying sodoers file via visudo

Can you please direct me to some examples and more detailed instruction on /etc/sudoers.d/ I'd like to give some group permission to sudo some commands, but in a proper way not to create unnecessary ...
35
votes
2answers
162k 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 the www-data user write access to the above, while 'myuser' continues to have normal access (as it is myuser's home folder anyway). Which ...
35
votes
2answers
11k 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?
34
votes
8answers
65k views

Unknown user in statoverride file

I had an application installed on my htpc running ubuntu server called mediatomb, a few months ago I uninstalled it and replaced it with a Plex install. At the weekend when querying existing users on ...
34
votes
1answer
733 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 ...
33
votes
1answer
75k 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? ...
33
votes
1answer
67k 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 just ...
32
votes
6answers
52k views

How to find which users are currently logged in?

uptime shows among others 4 users, should I be worried? According to man uptime uptime gives a one line display of the following information. The current time, how long the system has been ...
32
votes
1answer
109k views

Properly modify home dir

I would like to know, whow to modify properly the homedir of a user. I already know about this command usermod -d /home/peter peter But now, do I have to create the homedir before? And what will ...
32
votes
3answers
80k views

Share a Folder between two Local Users

I and my brother have User Accounts on this machine. I want to share the Documents directory with him. Is there a STRAIGHTFORWARD way to do it? I am not a power user so I am looking for a way to do ...
31
votes
5answers
4k views

How to prevent a new user from doing anything dangerous?

I recently installed Ubuntu server on my server to try out the linux as a new user. I followed a tutorial on how to set up the web server which said I need to chmod 777 the web server dir so that it ...
31
votes
5answers
82k views

How can I prevent users accessing anything but their own home directory?

How can I prevent users accessing anything but their own home directory? For example, I have a NTFS partition mounted under /media/ntfs, so if the user logs in through ssh he can reach this partition....
30
votes
6answers
3k views

What would happen if I created an account called 'root'?

If I created a user account in Ubuntu called root, would it automatically have root permissions? Break the system? Cause a glitch in the matrix? What would happen?
30
votes
3answers
24k 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?
29
votes
6answers
111k views

copying files from one user to another in a single machine

How to copy any files or directories from one user to another user in a same machine via terminal? Suppose there is one file test.txt in home directory of USER1. I need to copy that file to the home ...
26
votes
4answers
70k views

How to see the UID of all files or folders

When I do a ls -al, I can see the owner and group of files or folders. However, I recently changed my UID, so how do I find out if all my folders belong to my username and the new uid?
23
votes
5answers
144k views

“Failed to create user” due to regular expression error

I'm running Ubuntu 12.10 desktop 32 bit. Currently I have only a user, type administrator. I'd like to create another administrator user but I keep getting the following error: Failed to create user ...
23
votes
2answers
15k views

How can one restrict the number of CPU cores each user can use?

We have a computer whose CPU has 32 cores and it's going to be used for running programs by a few different users. Is there any way to restrict the number of cores each user can use at any time so ...

1
2 3 4 5
29