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

learn more… | top users | synonyms

0
votes
1answer
382 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 ...
3
votes
3answers
102 views

Why only one active group at a time?

As far as I understand the users in Unix system can belong to multiple groups and one of them will become the primary group for that user. Others will be supplementary groups. All of this User/Group ...
0
votes
1answer
670 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 ...
1
vote
0answers
11 views

Cannot login to svn server

I have a SVN server on my Raspberry Pi (Raspbian). It has a project under the directory /welcome, I want to add users to it. My users would be admin with password admin and user2 with password ...
2
votes
2answers
43 views

Preserve ownership with rsync and nonexistent user

I have two computers with the same user, me@Home and me@Work. I usually kept their folders synced by bringing Work home (it's a laptop) and rsyncing over LAN. However, now I'm not bringing Work home ...
6
votes
2answers
801 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 ...
8
votes
1answer
627 views

Lightweight virtualization on Linux with user isolation

What Linux-on-Linux virtualization technologies provide user isolation? Specifically, I want root in the virtual machine not to have any privilege on the host. This was not the case for LXC, but was ...
4
votes
2answers
156 views

Change user info on the command line

I have made a user in Mint 16 but want to change its first and last name without deleting it and starting from scratch. I know how to do it with a GUI but I want to know the terminal command ...
1
vote
1answer
6k views

switching from user to root and revers (FreeBSD)

I want to make some modification with root and then with my user, in fact I want to install sudo and he give me the error in the first step: cd /usr/ports/security/sudo make install clean ...
3
votes
1answer
49 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.
4
votes
3answers
74 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 ...
1
vote
1answer
32 views

Unix Useradd - Audit list of users added to system [duplicate]

I would like to understand how could I pull out a list of users that have been added with certain privileges to a Unix system over a certain period of time. Now, I understand one way to go about ...
7
votes
2answers
683 views

chown removes sticky bit: bug or feature?

Steps to reproduce: germar@host:~$ cd /tmp/ germar@host:/tmp$ touch test && chmod u+s test && ls -la test -rwSr--r-- 1 germar germar 0 Nov 2 20:11 test germar@host:/tmp$ chown ...
0
votes
2answers
670 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. ...
2
votes
2answers
261 views

How to open a program as another user inside a logged display?

I'm trying to open netbeans as a different user, but isn't working. I'm running a Kubuntu 12.04 LTS with KDE. And I tried the following: Open a terminal, type su - myotheruser, type the myotheruser ...
0
votes
1answer
33 views

Store passwords of Linux users in plain text - on purpose [duplicate]

I want to reset passwords temporarily to log in as root at least one time to change passwords. I have access to the hard drive and I can run a live distro to gain root access. I did think it would be ...
5
votes
2answers
8k views

Creating an user without a password

I'm trying to create user without password like this: sudo adduser \ --system \ --shell /bin/bash \ --gecos ‘User for managing of git version control’ \ --group \ --disabled-password \ ...
2
votes
1answer
236 views

Sendmail can't find local users (with uppercase letters)

Sendmail works through sending to a smarthost, but can't find local users. # sendmail -bv LocalUser@myhost.net LocalUser@myhost.net... User unknown # grep LocalUser /var/log/maillog Sep 8 03:48:30 ...
5
votes
1answer
99 views

sudo - impersonating a user

I am trying to use the sudo command and sudoers file correctly so that I can run a command as another user. I have my sudoers file set up as follows: beans ALL = (root,apache) NOPASSWD: ...
3
votes
2answers
33 views

Is it possible to change passwords temporarily?

I have a Linux system with several users. I don't know their passwords, nor do I want to know them. I have to do a batch copy of some of their directories over SSH, with their account and password. ...
0
votes
1answer
41 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 ...
57
votes
3answers
201k 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?
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
22 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
31 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
239 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
110 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
51 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 ...
2
votes
3answers
72 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
1k 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
73 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 ...
0
votes
1answer
29 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
50 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
123 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
10k 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
605 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
85 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
3k 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
44 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 ...
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
110 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 ...
58
votes
5answers
81k 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
43 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
256 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
61 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
161 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
425 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
44 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 ...