Questions tagged [user-management]

Questions about managing the UNIX users, groups and permissions.

Notable questions

357 questions
1116
votes
10 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
  • 39,252
1026
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 sudo er or do I have to change that only after adding…
David B
  • 11,632
406
votes
5 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)?
a06e
  • 14,313
252
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…
201
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,795
102
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
  • 18,559
99
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,065
83
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
  • 78,726
64
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…
57
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,833
54
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
  • 39,252
39
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,824
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
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
  • 857
20
votes
3 answers

How to know whether am the administrator of my Ubuntu?

Is there a way to know whether am the administrator of my Ubuntu 14.04 ? If not, how can I became the administrator ?
TomJ
  • 616
1
2 3
23 24