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

learn more… | top users | synonyms

0
votes
0answers
14 views

Linux user ssh connection disabled after execution of setfacl command

I have very little linux administration experience, after searching a lot stuff online, finally I decided that I must hope that someone helps. The problem is, I needed to share an account with a ...
3
votes
2answers
68 views

What is nobody nobody user and group?

On my server (Synology DS212) some files and folders have nobody nobody users and groups. What are the characteristics of this user and group? Who can write of read this file? How can I change it ? ...
2
votes
1answer
25 views

How to set up users, ownership and permissions across local and remote servers?

I've been learning the Linux OS over the last year or so and I am still very confused on how permissions vary from different configurations. I am trying to set up my local development environment and ...
0
votes
1answer
36 views

Ubuntu 14.04 automatically enters into admin account, how to turn this off?

I am a new user of Linux .I have both window 7 and Ubuntu 14.04 . For my family and friends ,i make Guest account but when i restart my laptop and operates with window7 then options are comes for ...
0
votes
1answer
28 views

Why does transmission adds a new user to the system?

When I installed transmission, I've seen here that I need to change the ownership of some groups to able this to work with my raspberry pi. First of all: why does transmission adds a new user to the ...
0
votes
3answers
66 views

Adding new user in Linux

I created a new user in Linux using useradd connectweb and I see the following in the /etc/passwd file connectweb:x:1002:1002::/home/connectweb:/bin/sh but when I try to navigate to the folder ...
-1
votes
0answers
16 views

Why, after I've used visudo, do I need to completely logout and back in for the changes to take effect?

I can see this has been asked before, with the answer being that processes inherit the user/group of the parent. This explanation doesn't make sense for the situation where I've done something like ...
0
votes
1answer
57 views

SCP without password prompt using different username [duplicate]

I have 2 servers, Server1 and Server2. On Server1 I have a user named user1. On Server2 I have the user named user2. I need to be able to write a script that runs on Server1, which will scp some ...
0
votes
1answer
9 views

What should file permissions be set to in order for an FTP editor to work?

I installed git on my server and cloned my development repository using the root user. The permissions appeared to have been set to: Files: -rw-r--r-- Directories: drwxr-xr-x I previously had ...
1
vote
3answers
42 views

Why is the home directory not created when I create a new user?

I created a new user (testuser) using the useradd command on an Ubuntu server Virtual machine. I would like to create a home directory for the user and also give them root provileges. However, when I ...
2
votes
1answer
35 views

Are there any user guaranteed to exist on the system

Beside the root (which I guess IS guaranteed), is there any other username guaranteed to exist on Unix system? Linux system? Fixed UIDs for those users? If not guaraneed, are there at least any ...
1
vote
0answers
45 views

Stop all processes by a user: children of supervisord are still running

I'm trying to delete a user but it keeps saying that user is currently used by process ID x I tried everything here and here, nothing works, how do I kill all the process by a certain user in order ...
2
votes
3answers
175 views

View list of users

I would like to see how many users are on my system. How could I view a list of all the users on the system?
1
vote
1answer
27 views

$USER not set ssh

On some of my debian wheezy servers there is a global variable $USER that contains the current logged in username and on some this variable is not set immediately at login. How do I set $USER so it ...
3
votes
0answers
37 views

When running 'su - username', pam_group doesn't add additional groups from /etc/security/group.conf but sshd login does?

I am having trouble determining why su doesn't behave as the PAM configuration would imply. In short, using su to become another user should load secondary groups according to PAM configuration, but ...
2
votes
4answers
62 views

How to find out which package a user belongs to?

In Linux distributions, some packages create user accounts. How can I determine which package created a given user? I want to know specifically for Fedora and Ubuntu, but answers for other ...
2
votes
4answers
303 views

Moving a directory from a user to another user, keeping the correct permissions

Let's suppose we have to users: alice and bob. Now Bob wants to move Alice's ~/Documents directory into his home folder. What's the best workflow to do that, updating the permissions (from Alice to ...
1
vote
0answers
15 views

How does autoconfig/autodiscover work?

I have a server with OpenLDAP/Kerberos authentication with 7 desktops/clients. Manually generating a new user and configuring a new profile (gnome, evolution mail accounts, evolution calendar/tasks ...
0
votes
1answer
30 views

Sudoers - group managing and reboot/shutdown

I've got a group (let's say name "group1", ID = 1234) and a user (let's say name "user1", ID="4321"). I want to do two things: I want that user to change passwords from other members of that group, ...
2
votes
1answer
41 views

Use current user environment variable in sudoers file

I want some of my users to be able to change their password with sudo command because at the time they log in, they are passwordless (ssh keys connection). My users have no password (and this is ...
0
votes
3answers
48 views

/etc/passwd permissions and GECOS field

The default permissions on Ubuntu (or even some BSD) distributions for the /etc/passwd file are 644. It is pointed out in questions like this that /etc/passwd is a sort of user database and it is ...
0
votes
1answer
10 views

Multiple users' access to directory

I'm running Arch Linux. My website's files are in /home/user/www/ directory. Another users also have their website's files in /home/foo/www/ directories. Now if I want to change something on their ...
1
vote
0answers
18 views

How to create a master user for creating default settings in production programs?

I am interested in creating a master user whose default program settings are inherited by later users, like a template user. I know this used to be done in multiple-user Unix terminal settings such ...
2
votes
2answers
49 views

Limit user from viewing files he doesn't own

Normally, file such as /etc/passwd have the permissions 644 which means that everyone has a right to read the file (4) but only the owner has a right to read it and write to it (4+2=6). I want to ...
1
vote
1answer
29 views

What if I add a user to a supplementary group?

I am using debian 7.0 and I added "debian-transmission" to the group "pi" with: usermod -a -G pi debian-transmission I made this change because transmission was not able to write the pi mounted ...
1
vote
1answer
119 views

nginx - userdir with user permissions

What I want to do is have the usual server running user files like this: http://users.example.com/~user1/stuff.php which would be stored somewhere in /home/user1/www or something like that, but ...
2
votes
2answers
116 views

assigning read/write privileges for a folder to a user in CentOS 7

I am logged into a CentOS 7 server as root. I created a folder /somefolder. I want someusername to be able to write to that folder via scp from a remote computer. What command should I run so that ...
2
votes
3answers
200 views

Command for finding users who are not logged in

Is there any command that can find the number of users that are not logged into the system ? I am trying to write a shell script that counts the number of users who are logged in and number of users ...
0
votes
0answers
60 views

Create a user who cannot explore system directories

I have a Centos 6.5 machine. I add users with useradd username. These users cannot browse other users directory, but they can browse all the OS filesystem starting from / and see configuration, ...
1
vote
1answer
70 views

List connected via SSH users [duplicate]

I checked this answer and this option - it is good, but it requires sudo rights. I need that this command may be performed by any user, for this reason I am using next command ps -ef | grep sshd: | ...
1
vote
1answer
48 views

How can I see the password of another user in Linux?

I made 4 users on my server, but unfortunately I changed the password of the "first" user while configuring the server, but I don't know how I changed it. How can I see the password of users in root?
0
votes
1answer
296 views

Unable to su into an account: could not open session

in my Linux machine - red-hat I successfully to login to different users as the following su - userC [machine@Linux ~]$ pwd [machine@Linux ~]$ /Users/userC but only in one user I get the ...
0
votes
1answer
165 views

sudo not working on debian

Why sudo command is not working on my fresh debian installation. I had this error after entering my root password: Sorry try again .. or / and incorrect password attempt EDIT : In my ...
1
vote
0answers
112 views

User Acces restrict to only one folder

I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines here: ...
2
votes
3answers
109 views

Writing a script that outputs local users and their password expiration date

I'm new to Linux and scripting, and was doing a practice problem and am stuck on it. I'm supposed to write a script that outputs local users real name and their password expiration information. This ...
1
vote
1answer
77 views

How do I know if I'm in a jail, container, snapshot, etc. environment? [duplicate]

I received a machine (Ubuntu 12.04 server) from a coworker when he left the company. I created my own user as sudo/admin and used the machine for months via SSH. After rebooting for the first time ...
0
votes
2answers
139 views

Linux user not being able to login (/bin/nologin)

I work on a shared linux enviroment (CentOS), but for some reason one of my logins has been locked. When I do a cat /etc/passwd | grep "/home", I can find my user: ...
1
vote
1answer
110 views

Creating users with groups in Ubuntu Server? [closed]

Typically when I create a new user in CentOS / Redhat with the command: useradd user The permissions that it is assigned to the user typically works fine. I believe everything is restricted to its ...
3
votes
1answer
103 views

Ubuntu user disappeared from machine

Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user (from his sudo/admin user) and ...
0
votes
0answers
45 views

Vagrant user permissions

What I like about vagrant is that all the permissions work out of the box when provisioned with Puppet. However I can't get the same permissions to work on my digitalocean droplet. On my vagrant box, ...
1
vote
1answer
87 views

Script to see if user has logged off

I have created this program to see if a user is logged on and it checks every minute. if [ "$#" -ne 1 ] then echo "Usage: mon user" exit 1 fi user="$1" until who | grep "^$user " > ...
1
vote
1answer
74 views

basic explanation on NSS , LDAP and PAM

can anyone give me a basic explanation on what are NSS , LDAP and PAM and what they used for and what is their relationship/differences ?
4
votes
1answer
49 views

rsync doesn't preserve directory ownership even with -a

I use this rsync invocation to backup my home directory: rsync -aARrx --info= --force --delete --info=progress2 -F "$USER_HOME" "$BACKUP_MNTPOINT" rsync man page says that -a implies -g and -o ...
1
vote
1answer
27 views

Grant rights to create / manage users

Is there a way I can grant a user or a group the permission to add/edit other users without the ability to alter anything else on the system? The idea is to give helpdesk agents the ability to grant ...
2
votes
3answers
155 views

How to determine users connected ssh

I want to see how many users are connected to a PC to see who is gonna see the message when I do for example: echo hello users! | wall
2
votes
1answer
50 views

Remove ex-admin user account and grant privileges / permissions / ownership to another

I would like to find the simplest way to remove the old system admin's user and group from a Gentoo server and put them all under my name instead. He no longer works here and it would appear that a ...
3
votes
1answer
49 views

Workstation-like environment across Debian clients

At our university we have a workstation-like system. It's windows XP (or Win-7 on some machines) and you can sit to any computer and log in with your credentials. It seems to be pulling some of your ...
2
votes
1answer
72 views

Single user for sharing vs. multiple users

In my lab, a group of people work each at one workstation, and they share a number of drives over NFS. They run shared software residing in one of those NFS drive and they run it on the NFS drives ...
1
vote
1answer
49 views

Why do web create separate user for each software?

This is a very noob question, but whenever I am installing something, like ghost, nginx, mysqld I see commands such as, useradd ghost useradd mysql What is the reason for this? I can guess this ...
3
votes
2answers
217 views

How can I detect a user login programmatically? [duplicate]

I am developing a small daemon program which needs to run some instructions when a user logs onto the system (all kinds of logins included). In order to do so, I want my program to be woken up ...