Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [user-management]

Questions about managing the UNIX users, groups and permissions.

0
votes
0answers
6 views

Problems with user settings

i have 2 users, mine and my moms, but the thing is that, from my mothers account i can enter the files and apps for my account (mine is the principal one btw) i dont want my mother to acces my files, ...
1
vote
1answer
32 views

Terminal shows that my user is only a member of its group, but it is not true - how to fix?

I went to strange situation on my laptop (running Ubuntu 16.04.5 LTS). All terminals show that my sudo-able user is only a member of its group: $ whoami norbert $ groups norbert $ id uid=1000(...
-1
votes
1answer
74 views

How to transfer all user settings and preferences to root and delete all users except root?

How to transfer all files, settings and preferences from a user to root and delete all users but root ? I find it tedious and time-consuming to work on ubuntu 18.04 "LTS" gui when I'm not root. Root ...
0
votes
0answers
18 views

How to “kdestroy” user's ticket in FreeIPA (LDAP 389 Directory Server)

We are trying out FreeIPA (LDAP 389 Directory Server) and integrated the same to our Ambari Hadoop cluster (HDP v3.0.1). We are able to add users and provide them access to Hadoop with help of Kinit ...
1
vote
0answers
15 views

User group membership appears to be empty [duplicate]

I appear to be having issues with group membership for the single user on my Ubuntu laptop. I found this initially when trying to access a USB stick and finding I was getting access denied. I checked ...
1
vote
0answers
15 views

How do I restrict a specific SSH user to only connect from a list of machines in a specific file?

I have a virtual machine with ubuntu 16.04 and i'm trying to restrict one user to only be capable of accessing the server through SSH if he's connecting from one fo the machines defined in a new file, ...
0
votes
0answers
44 views

SOLVED: su with new user automatically fails without asking for a password

I'm on Ubuntu 16.04.5. I've created a user called test_user and when I try the command su test_user I get the output user@user:~$ su test_user su: Authentication failure user@user:~$ Without ...
8
votes
2answers
700 views

Why should we expire a locked account to totally prevent access?

From man usermod: Note: if you wish to lock the account (not only access with a password), you should also set the EXPIRE_DATE to 1. Why should we expire a locked account to totally ...
0
votes
0answers
84 views

How to reset the forgotten username and password in Ubuntu Linux Server 18.04 LTS? [duplicate]

It says Login incorrect. I cannot find any options or settings to manipulate.
0
votes
0answers
74 views

Groups,User and PostgreSQL access rights

I have a web app that uses a PosgreSQL database. To use the database I use the following command: sudo -u postgres psql I think, this is very basic, so I'm looking for something like: not all ...
0
votes
0answers
24 views

Best practice with user permission?

When adding new users to my server, I want them to have their own /home/ dir, and also /home/user/www/ which is linked from their own apache html folder. No other user should be able to view those ...
1
vote
1answer
81 views

how should `id` and `/etc/group` be read?

This is a follow-up question to Why is a user not a member of their private group (UPG)? although the first question isn't really necessary to understand this one. The command id seems pretty clear......
1
vote
0answers
139 views

Why is a user not a member of their private group (UPG) according to the GUI? (although CLI proves the opposite…)

I downloaded the current iso file of Ubuntu MATE from the website. I did a completely fresh install of Ubuntu MATE 16.04 (specifically 16.04.5). the same is true for Ubuntu MATE 18.04 (specifically ...
0
votes
0answers
348 views

How to give edit permission of a directory to a user in Ubuntu 18.04?

I am using Ubuntu 18.04.I have a PC with two different account, one for me & another for my wife. I want to give permission to access all the files & folders to my wife's account also. I have ...
2
votes
2answers
243 views

Created a user with user add and it's not listed in users list

I used the following command to create my user: useradd -m multicraft And it doesn't show up in this list: users All that shows up in that list is this: root@ns530757://home/multicraft# users ...
0
votes
1answer
85 views

Cannot access my user data

I forgot the username in which I had my data. When I went to user data management, this came. I remember the password but not username, so I don’t know how to log into that. I am new to Linux, I use ...
1
vote
1answer
141 views

Slurm new user on Ubuntu 18.04

I am a very new user of Ubuntu (escaped from Windows recently) and yesterday when I was turning on my PC I found new user listed in login options with a nickname "Slurm" (I am the only user with a ...
-2
votes
1answer
40 views

Disallow command usage for a specific user [duplicate]

I recently bought a VPS with Ubuntu 18.04 (Server) on it, and ever since I've started using it I've been spammed by one of my friends regarding that he wants an account. I wanna take some revenge on ...
2
votes
1answer
689 views

how to change a user home directory to adirectory that already exits?

I have a website user who I want to be able to upload content to a folder on my server. I thought ok, I'll create a new user, and change his home directory to the folder where his stuff is already. ...
2
votes
1answer
517 views

Keep a laptop running with closed lid

I am trying to keep my laptop running with the lid closed. What I've done so far is: In the file /etc/systemd/logind.conf add HandleLidSwitch=ignore both for docked and plain mode. This didn't do ...
0
votes
0answers
29 views

Restrict a user to not leave one specific directory (only run a terminal javascript app)?

I have seen many topics regarding similar questions, but those always seem to address ftp and ssh accesses. In my case I simply want a kind of a "terminal user" who may not read contents of mounted ...
1
vote
2answers
319 views

Removing user photo (18.04) [duplicate]

While playing around with a fresh installation of 18.04, I've accidentally selected a photo for my user. I couldn't find an undo or cancel or remove option, so now I'm stuck with a photo on the login ...
0
votes
0answers
29 views

Unable to login to my account [duplicate]

I'm using kubuntu 18.04 and have two users in it. Uthej (the one I use normally) Hduser( i created it for practising haduol) I did something like this.. login as root -> open terminal -> chown -R ...
0
votes
0answers
34 views

Ubuntu OAuth client

Please, what solution should I use, when we already have oauth server (our own gitlab) and we have some ubuntu machines and want the machines to accept logins (as its users), that can login to our ...
0
votes
0answers
50 views

Restricting specific folder access to a user

I have three users. For one user I want to restrict access to some specific folders. When I tried to do this through Ubuntu GUI, it did not work. Can you please tell me some commands so that I can ...
1
vote
0answers
69 views

user id is not the same when creating a file

I just noticed that whatever file I create does not have me as userID/owner, instead it has another user (a generic access account). I'm not sure where to start debuging this issue since I'm new to ...
9
votes
1answer
758 views

Why is the username still displayed even when it's been deleted using 'userdel' [duplicate]

I added a user with the adduser command and then deleted it withuserdel, but the username is still displayed in the home directory and in the switch account section. Why does this happen? How do I ...
2
votes
1answer
47 views

Accessing Another User's data on same computer(GUI)

I have two users on my laptop, say user1 and user2. I want to access user1's data from user2, provided I know the password(I manage both accounts). But I want to use the GUI instead of accessing it by ...
0
votes
0answers
47 views

How to Restrict other FTP user to create file/directory with a specific name on a server

I want to add restriction on FTP users to create Files or Directories with a specific name like "abcd" on my server. Only I would be able to create that specific file name. Is it possible to do so?
0
votes
0answers
24 views

How to mount a second drive with HOME partition with another user permission

I have a laptop with two SSDs. SSD-1 has 500GB capacity with two partitions, /and /home. / has 20GB capacity and /home has 480GB capacity. This SSD has an independent ubuntu 14.04 installation with ...
0
votes
0answers
58 views

Get user switch notification in Ubuntu and Kubuntu

I'm writing a daemon in C++ that needs to know when a User Switch event occurs on the desktop(not in a particular terminal). I would like to know if there is an API I can call or a file I can monitor ...
1
vote
3answers
110 views

Removing user accounts

I'm new in Linux. I've created 5 users using adduser and then removed 'em with deluser according to man pages. On GUI's User Accounts I don't see them.All gone,but in Terminal cd /home/.../ I still ...
0
votes
2answers
591 views

I use zsh as my regular user, but when I use root my shell is Bash. How can I use Zsh for root too? [duplicate]

My Original question: When I run sudo su my zsh prompt changes back to Bash. How can I make Zsh the default shell for the root user? My answer about duplicate : The question about when a post is ...
0
votes
0answers
27 views

how to replace user control panel with old version in settings

have the proper 'user and groups' installed from LXQt to replace that useless vestigal wart that currently is the 'user accounts' cp. how to i replace the cp app so i can just go to system settings ...
0
votes
1answer
57 views

What is the difference between the default user group and root group?

Suppose I have a directory with default permission drwxr-xr-x 4 root root 4096 Dec 11 23:47 webtorrent-desktop/ I will Change only the owner $ sudo chown -R sandy webtorrent-desktop drwxr-xr-x ...
0
votes
2answers
738 views

Sudo requires password after adding user to sudoers

I have added my user in sudoers file, after a restart ubuntu still requires password to execute command. Below is my sudoers file. root ALL=(ALL:ALL) ALL # Members of the admin group may gain ...
1
vote
0answers
29 views

write permission [duplicate]

I'm trying to solve a problem about write permission. I have the user mamuth in the group www-data, i used the command: adduser mamuth www-data Running: cat /etc/group | grep mamuth Results with: ...
0
votes
3answers
445 views

delete all users from group

In ubuntu, how do you delete all users from a group using the bash command line? The group is called grp1 and it's at /etc/group It don't care whether the actual group remains or not. I just want the ...
11
votes
2answers
1k views

What is the purpose of the group named “users”?

On my Ubuntu a group "users" with id 100 exists. But it has no members at all. My questions are: What is the purpose of this group? Should each user of the system become a member of this group?
5
votes
2answers
268 views

User creation with mutiple command options

Is it possible to create a user with specific default home directory and add the user to specific primary group with single command?
0
votes
0answers
71 views

How to create bulk users in Samba AD PDC!

I created the Samba AD PDC in Ubuntu 16.04.3 & able to join the Windows & Mac machines to the domain fine. But I would like to know the bulk users upload in my Samba. Like below, I need to ...
0
votes
0answers
44 views

Ubuntu won't log me in with correct password [duplicate]

When I login at the normal login screen, it logs me in then goes to a black screen then throws me back to the login screen. There is no error message. I'm on Ubuntu 16.04. If I log in as a guest and ...
1
vote
0answers
3k views

Cannot delete user - entry missing in /etc/passwd - (networked user)

I ran sudo userdel <username> but I received the following error userdel: cannot remove entry '<username>' from /etc/passwd I check the /etc/passwd file and I indeed cannot find an ...
1
vote
1answer
81 views

Problems with deleting user

I have problems with deleting a user on my Ubuntu terminal. I log in as root and type: # deluser mn1 userdel: user mn1 is currently used by process 21106 /usr/sbin/deluser: `/usr/sbin/userdel mn1' ...
0
votes
1answer
30 views

How do you delete unspecified users from a text file of wanted users?

Say I have a text file of users I want. How can I write a script or a code to delete all users except the users I specified in the text file?
2
votes
2answers
263 views

Kick off all other users who are logged in?

I know if I type w I can get a list of all logged in users. I also know that killall -u USERNAME kicks all processes associated with the user USERNAME (including bash / their shell, their sshd ...
0
votes
2answers
260 views

PAM nologin not working?

Trying to learn basics of PAM and one thing I tried was to utilize the nologin feature. So I simply made a file /etc/nologin with the text "Sorry, users locked out for now!" I rebooted but for some ...
12
votes
1answer
239 views

How can I restrict users of computers to 2 hours only?

I work in a library and I want to restrict users of computers to 2 hours only. Then lock them out and allow another user to use the computer. I am using Ubuntu and would like to know if there is a ...
1
vote
2answers
2k views

How to remove user “PostgreSQL” in Ubuntu 17.04

I uninstalled PostgreSQL with sudo apt-get --purge remove and did the same for all the packages but when I go to login there's still a "PostgreSQL" user. I tried running sudo deluser PostgreSQL but ...
0
votes
3answers
531 views

How to list “loginnable” users? [duplicate]

When I start Ubuntu there is a list of users I can click and enter the password for to log in. How do I get a list of these users? I tried to get users from the /etc/passwd file by doing this: cut -...