Anything related with user accounts and user management on Unix-like systems.

learn more… | top users | synonyms

0
votes
1answer
14 views

Debian file's permissions for secondary's group of user

I am installing a proftpd server on a debian dedicated server, In order to be able to update some website files in this folder : /var/www/website I have added a new user : my-ftp-user This user's ...
0
votes
0answers
8 views

GUI Login Problem in fedora [on hold]

I am newer to UNIX, Am using fedora. I have change my username in GUI username1 to username2 now I am facing problem at the time of login the error is /home/username2/.ICEauthority could not be ...
3
votes
1answer
40 views

Default files in home dir for each user

I'm using ubuntu server 14.04. I want to add some files and folders by default in each user's home directory, whenever a user account is created.
55
votes
3answers
187k views

How to switch between users on one terminal?

I'd like to log in as a different user without logging out of the current one (on the same terminal). How do I do that?
0
votes
1answer
305 views

Switch User won't work in Xfce

I'm trying to do Switch User in action buttons but gets me following error : Unable to start new display GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ...
5
votes
3answers
2k views

Can I allow a non-root user to log in when /etc/nologin exists?

Suppose a non-root user with sudo privileges executes a delayed shutdown (shutdown +10 or whatever) and logs out. Then, before the shutdown occurs, he wants to log back in and cancel the shutdown. The ...
0
votes
1answer
20 views

As what user does a command end up executing? [duplicate]

How can I find out as what user a command executes? (I'm running Ubuntu, but I suspect the answer applies to Unix in general). What I'm trying to do is get msmtp running and logging to ...
2
votes
0answers
29 views

How to set up networking on a per-user basis?

I would like to set up access to corporate VPN for just my user account on my computer; not for the other accounts and certainly not for the guest user. To achieve this, I presume, I need to ...
4
votes
4answers
223 views

Log out a user and delete the account

I am having a problem on the server (CentOS 6, Plesk 11.5) where a particular user is using a mass mailer and is blacklisting our IP address. I have tried to delete this user using: /usr/sbin/userdel ...
3
votes
2answers
90 views

Short, simple command to create a group if it doesn't already exist?

What is the cleanest way to modify this command in bash to only run if the group does not exist? groupadd somegroupname A one-liner would be best.
3
votes
1answer
34 views

Restricted ssh remote execution with arguments

I need to enable remote execution of a shell script on a server, but deny all other access. The script is a toggle that accepts a single parameter (on/off/status). This comes close to answering my ...
0
votes
1answer
585 views

Add a new user steps for Oracle Linux 5

It's been over 10 years since I last used RedHat (which I believe that Oracle Linux came from). So I cannot remember the steps to create a new user, add them to the appropriate groups, set up their ...
2
votes
3answers
48 views

adding list of users to multiple groups

I have a shell script which add list of users which is listed in another file lets say users.txt. After that, I want my script to add users to multiple existing groups with condition, one user may ...
2
votes
3answers
951 views

Limited SSH user on Ubuntu 12

I'm running Minecraft on a server. How can I give my friend SSH access just to the minecraft folder (a root folder), the screen command, and some ports?
2
votes
1answer
63 views

How can I investigate what other users are currently logged in?

Since the last few days I get an error message when I try to shut my laptop down: System policy prevents stopping the system when other users are logged in This error message includes a prompt ...
6
votes
2answers
5k views

I added a user to a group, but group permissions on files still have no effect

I changed permissions of a file (chmod g+w testfile) and running ls -l testfile gives: -rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile I then added a user to that group ("/etc/group" has ...
6
votes
2answers
785 views

How to mass change password attributes in AIX uname -rv=3 5 for all users but root

I want to do a mass change on all users but root in AIX for the following "password attributes": Weeks before password reuse: 15 Password min length: 6 Can it be done, or do I need to do them one ...
0
votes
1answer
25 views

Cannot lock group file: already locked

I'm trying to add a group using this command: groupadd somegroup which returns: Cannot lock group file: already locked. I did some research and most of the solutions require removing a lock file ...
2
votes
1answer
46 views

Does root not require a password to log in as a user?

Does root not require a password to log in as a user even though a password has been set for that user? When I am logged in as "root", su user logs me in as "user". There is no prompt for a password. ...
1
vote
4answers
78 views

How to correctly enable sudo for user in Fedora 20

I followed this question in order to enable sudo command for my created user. So I added it into the wheels group and edited the /etc/sudoers file accordingly. But what I don't get about this is when ...
27
votes
4answers
9k views

Is it possible to rename a Unix user account?

I installed Ubuntu on a computer that is now used by somebody else. I renamed the account with her name, but it only changes the fullname, not the user name, which is still displayed in the top right ...
1
vote
1answer
541 views

Create / Edit files in specific folder using different user / group

I want to know if the following scenario is possible. I am a user called www-admin and I am in the group www-admin. I am also a sudoer. I want to have all the files I create in the folder ...
7
votes
1answer
79 views

How can I keep user acccounts consistent accross multiple machines?

I now have a Raspberry Pi which runs Debian Wheezy. I have a couple machines (4 physical, 2 virtual) sitting here and I would like to unify the user accounts on those machines. The machines I run ...
1
vote
5answers
2k views

Changing user while scp

I need to copy file between Linux machines. The problem that the user I use to login (myuser), is different from the user that can access the file. If I just ssh to the machine, I can switch the user ...
2
votes
1answer
42 views

SSH'd into a computer, uptime / who / users report 0 users?

I'm ssh'd into a server. Why doesn't the server report it? # uptime 21:54:28 up 13 days, 3:47, 0 users, load average: 1.18, 1.11, 1.13 # users # who I'm not really sure I understand it ...
4
votes
3answers
40 views

Local Account Creation Date

For compliance purposes there is the need to fetch information regarding local (user and non-user) accounts creation date on UNIX machines. Is there any way (even if it's not the most reliable or ...
0
votes
2answers
424 views

vsftp user authentication problems

I configured my ftp user's home dir to /var/www and set a password but I cannot login with ftp 127.0.0.1, it keep giving me 530 Login incorrect. Why is this? I'm sure I have typed the password right. ...
20
votes
6answers
11k views

How do you create a user with no password?

In os X it's possible to have users without passwords. If you inspect them with dscl their password show up as *. This is used for system users such as users for databases like mysql, pgsql etc. ...
1
vote
1answer
72 views

NFS file owner(uid) = 4294967294, can't do much with my mount, How do I fix this?

I have a somewhat strange setup going on here, I have Android as the client and it's kernel does not support NFSv4, also my /etc/exports file on the server side has no NFSv4 style entries. I am ...
55
votes
5answers
76k views

How do I remove a user from a group?

Which command should I use to remove a user from a group in Debian? When adding a user to a group, it can be done with: usermod -a -G group user However, I could not find a similar command ...
2
votes
0answers
38 views

Easiest way to sandbox an user

I'd like to sandbox a user so that they can only read files under /media/shared/somefolder. What's the easiest way to accomplish this? Users/groups? ACL? AppArmor? Some context: Plex Media Server is ...
4
votes
2answers
232 views

How to get the name of the user who executed a bash script as sudo?

I want to create a bash script that must be executed with sudo but should take into account the name of the non sudo user who executed it. So if user bob runs sudo ./myscript.sh I would like ...
4
votes
2answers
55 views

Restrict user access in linux

I'm creating a new user with the following details: useradd -d /var/www/html/testuser.com -G users testuser I proceed by creating a new password for the user and attempt to login via SSH, I land on ...
2
votes
2answers
89 views

How can I create a new user but with a home directory that already exists?

Let's say I have a user called panos and he has his home directory located at /home/panos. Then, I create a another user called Tom: adduser Tom It creates a user Tom who has home dir: /home/Tom ...
11
votes
1answer
424 views

How is file owner and group remembered for an external drive?

I formatted an external hard drive with an ext4 partition and subsequently mounted it. So that I could use the new partition, I did: sudo chown me:me /mount/directory to change the file owner and ...
1
vote
1answer
40 views

backup user accounts without giving a home directory to them

I am reinstalling the older Ubuntu machines with the latest RHEL 6.0 in servers. I have /etc/passwd and /etc/group and /etc/shadow file backed up for the list of user accounts that I need to create ...
1
vote
0answers
19 views

Changing pasword for debian live

I have a hooks file, in the hooks folder, that looks like this: echo "root:rootpw" | chpasswd echo "user:userpw" | chpasswd After boot, Debian asks for user and password. When I type user along ...
2
votes
1answer
394 views

What audit log files are created in linux to track a users activities?

One of the machines on our networks was consuming a large amount of Internet bandwidth. However no user was using the system. When I connected to the server using SSH and ran who it showed that a ...
1
vote
0answers
72 views

Add a user for Postgres on Mac

I've had a very difficult time trying to set up a postgres database. I am using Mac OS X 10.9.2. I am using this tutorial: http://tutorials.jumpstartlab.com/topics/environment/environment.html The ...
0
votes
0answers
13 views

getgrent() never terminates in NIS setup

I have an NIS setup on my Linux box (from nsswitch.conf): group: compat nis When iterating over the group entries (using the getgrent() function), the iteration never terminates. For example: ...
3
votes
1answer
64 views

Two users with different permissions on same directory

Is it possible to give two users different permissions on the same directory? I want to use it for ftp: userFull gets R+W and userLim gets only Read, depending on who logs on. Im getting stuck on the ...
1
vote
1answer
86 views

Home Directories and pam.d using LDAP

Background: I'm not too familiar with the ins and outs of pam and LDAP authentication on a configuration side. I've used systems that use pam but I've only worked on applications, not systems ...
4
votes
3answers
177 views

Is it possible to get uid table in Linux?

I'm a student in a university and I can finger and id all users (students etc) through SSH. Here is the id command e147200@beluga:~$ id e201634 uid=22678(e201634) gid=3561(stat_bs) ...
6
votes
1answer
2k views

How can I do NFSv4 UID mapping across systems with UID mismatches?

I am working in a lab with three Ubuntu systems, and I would like to cross-mount some filesystems via NFS. However, while the systems have some of the same usernames, the UIDs and GIDs don't match, ...
26
votes
4answers
23k views

Disable a user's login without disabling the account

Let's say I create a user named "bogus" using the adduser command. How can I make sure this user will NOT be a viable login option, without disabling the account. In short, I want the account to be ...
10
votes
3answers
3k views

How can I make a user able to log in with ssh keys but not with a password?

I would like to create a user and have no password. As in you cant log in with a password. I want to add keys to its authorized_keys by using root. This is for my automated backup system.
3
votes
3answers
175 views

Allow other user to copy the files from my folder?

I am working with Ubuntu and I have a jar file in this folder /export/home/david And I am logged in machineB as david user. Some other user is also logged in that same machine. And I want other user ...
4
votes
0answers
148 views

Is there a tool(!) to list assigned subuid and subgid values for users?

The question is basically in the title. usermod -v (--add-sub-uids) and usermod -w (--add-sub-gids) can be used to manipulate the subuid and subgid ranges for a user account, but there appears to be ...
1
vote
0answers
18 views

Change the HOME of a user during a graphical session

The other day I had the idea to create display manager independent guest session. My basic idea was to change the login shell to a custom program that creates a temporary home on the fly (f.e. ...
0
votes
5answers
177 views

How can I download all usernames?

I have access to a university's Linux server where all students have accounts. I can retrieve their full name by typing the finger username, and their departments by typing id username. All the ...