Questions tagged [user-management]

Questions about managing the UNIX users, groups and permissions.

Notable questions

332 questions
1029
votes
9 answers

Is there a command to list all users? Also to add, delete, modify users, in the terminal?

I need a command to list all users as well as commands to add, delete and modify users from terminal - any commands that could help in administrating user accounts easily by terminal.
nux
  • 36,031
  • 33
  • 115
  • 130
928
votes
7 answers

How can I add a user as a new sudoer using the command line?

After I add a user using adduser, I can't see it via System > Administration > Users and Groups unless I log out and then log in again. Is that normal? Also, can I set a newly added user as a sudoer or do I have to change that only after adding it?…
David B
  • 10,612
  • 6
  • 24
  • 18
308
votes
4 answers

How can I find my User ID (UID) from terminal?

The title says it all. What command I need to run from a terminal to find my user ID (UID)?
becko
  • 11,623
  • 23
  • 61
  • 98
226
votes
8 answers

How do I add a user to the "sudo" group?

In /etc/sudoers I see this: # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it further down) %sudo ALL=(ALL) ALL So how do I add a…
coffee-grinder
  • 3,725
  • 8
  • 24
  • 22
170
votes
3 answers

How do I list the members of a group?

How can I see all the members of a group in Linux?
fratrik
  • 2,465
  • 3
  • 18
  • 11
96
votes
5 answers

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 cli, that's no problem. But I want this comfortable…
ehde
  • 1,035
  • 1
  • 9
  • 7
92
votes
4 answers

How can I create an administrator user from the command line?

I want to create a user with administrative privileges and all the regular setups like home directory. Is there a adduser parameter to give the user sudo powers automatically? What are the default settings for adduser? Will it automatically create…
Oxwivi
  • 17,029
  • 50
  • 134
  • 196
67
votes
9 answers

How can I change my own user ID?

There is only one user on my system. How can I change its user ID from the default of 1000? If there are additional steps that would be required in order to avoid breaking the login process on a typical desktop installation, those should be included…
ændrük
  • 74,042
  • 71
  • 228
  • 362
58
votes
4 answers

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 using ls /home command I am not seeing the new name…
Bala Jagannathan S
  • 613
  • 1
  • 5
  • 6
56
votes
6 answers

Why is 777 assigned to chmod to permit everything on a file?

I was asked in an interview why it is that 777 is assigned to take all permissions for a file. Why not 555? He said that there is reason for everything. So, what is the reason for 777? Why not any other number? Is there any significance in this…
hellodear
  • 4,443
  • 3
  • 17
  • 25
48
votes
11 answers

Why can I create Users with the same UID?

My understanding of UIDs is that is a unique positive integer assigned by a Unix-like operating system to each user. Each user is identified to the system by its UID, and user names are generally used only as an interface for humans. How can two…
nux
  • 36,031
  • 33
  • 115
  • 130
40
votes
1 answer

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 loopholes in the Ubuntu security model on a…
Pawel Debski
  • 2,654
  • 8
  • 24
  • 38
34
votes
1 answer

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 properly restore system's man user?
Marc
  • 453
  • 3
  • 4
31
votes
5 answers

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 can be written into. Anyway, I created a new…
Askerman
  • 796
  • 3
  • 13
  • 22
18
votes
4 answers

Failed to connect to Mir: Failed to connect to server socket: No such file or directory

After logging in as another user how do I run GUI programs? thufir@doge:~$ thufir@doge:~$ sudo -u hawat -i hawat@doge:~$ hawat@doge:~$ whoami hawat hawat@doge:~$ hawat@doge:~$ pwd /home/hawat hawat@doge:~$ hawat@doge:~$ echo…
Thufir
  • 4,363
  • 15
  • 75
  • 141
1
2 3
22 23