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

learn more… | top users | synonyms

1
vote
1answer
36 views

Checking how long a user has been logged in

Is it possible to check for how long a user has been logged in? Or when the user logged in on an Unix/Linux system? I logged in as another user on my system a while ago and I would like to now how ...
0
votes
1answer
12 views

Where do service permissions come from

I'm trying to broaden my knowledge of the events surrounding system startup. I see that there are many process which are started without root level permissions. e.g. rsyslogd is listed as running ...
1
vote
1answer
30 views

usermod always reports user does not exist on RHEL 6.6

My RHEL 6.6 VM is running behind Centrify Active Directory. When I do sudo id 'any_existing_user' it will give back info about that user. But when I do sudo usermod -c 'Comments' ...
1
vote
2answers
116 views

Can I log in into a system user after I create him?

On an Ubuntu machine, if I run the following command: adduser --system --no-create-home system-user I create a system user named system-user without home directory with /bin/false as the shell. This ...
-1
votes
1answer
37 views

Passwordless login (text console and “su - user”)

How to configure an user (in debian) to login without password ? An user without password shall login in text console and using su - user without being asked for password. (secure isn't requirement ...
2
votes
1answer
42 views

Bash do action as nobody and nogroup?

I have a log file that was created by nobody:nogroup, which is activity being logged to, I wanted to emulate adding a message to that log file. My first though was to: $ sudo su nobody This account ...
1
vote
1answer
33 views

How to find userID after login as root using pmksh?

I am trying to gather the username of the actual person logged in the server instead of just showing root. After entering pmksh, the prompt changes to root@hostname. When I do echo $USER the result ...
1
vote
1answer
38 views

Linux/Unix username length limit

Would it be difficult to increase the limit or would it just be a one-place change? I have a system that could really elegantly make use of the Unix multiuser model for process isolation but I'd need ...
0
votes
0answers
48 views

Using CentOS as a thin client

I have about 50 desktop PCs running CentOS. These will be used as "thin clients" for users to access their real desktops (VMs) using some flavor of NX technology. So, the PC on the user's desk is a ...
1
vote
3answers
25 views

Set up a user for a program

/etc/passwd shows many "virtual" users that are essentially for programs to use, rather than for people. How do I go about setting up such a user? All I need is a user that isn't used for anything ...
1
vote
2answers
29 views

User verification

Suppose I've writen a setuid root executable and I want it to verify that the user is not a script by asking the user to provide his/her password (granted, users might save their password and use that ...
1
vote
2answers
46 views

The Deny the permission of mounting any drives to a user

I'm using Linux Mint 17.2 Cinnamon. There are multiple partitions on /dev/sda. /dev/sda1 is where the system resides, /dev/sda2, ..., /dev/sdaX are NTFS partitions. There are two users admin and ...
10
votes
4answers
2k views

what does star in passwd file mean?

I have a computer that I need to boot into, but the passwords seem to be bogus. Additionally i cant mount the drive for writing, and it is a mips processor, so I cant stick it in another machine to ...
1
vote
1answer
33 views

Restricting CPU time of processes by executable path

Is there a way to restrict CPU time (duration) for all processes which are invoked by executables that are located in a certain directory? I would like to be able to auto-kill all applications which ...
0
votes
1answer
34 views

A specific user can't login (after connecting TV), can't figure out why

I have lately installed Debian Jessie on my Dell XPS (1401x, GPU is NVIDIA 425M), installed the NVIDIA driver, and everything worked well. This evening I connected my laptop to my TV via HDMI (not ...
1
vote
2answers
67 views

2 passwords for login

On Linux, I would like to to set up a user account in such a way that the user would have to enter 2 passwords to log in. Is this possible, and what would be the implications of this?
0
votes
0answers
12 views

vfat mount only seen by 'root'

For the sake of this question, I'll assume the device /dev/disk/by-name/device formatted as vfat, the mount point /mount/point and the user named pancakes with uid 1000. As root, I attempted to mount ...
0
votes
0answers
17 views

A puppet configuration style for users

I want to set a configuration managment utility for users, like puppet but for users, I need to install one package or another or apply one manifest (in puppet) in order of the user that is logged in ...
1
vote
1answer
46 views

Unable to login as a newly created user

I have a dual boot Kali Linux along with windows 7. Now when I installed Kali it logs me in as root. I do not have a login in my name. So I created a user with the following steps. However when I ...
1
vote
1answer
33 views

Apache Tomcat and Httpd - Sharing common web publication folder - CentOS

Suppose: The Httpd's Web publication folder is assigned according: Edit /usr/local/httpd/conf/httpd.conf file: DocumentRoot "/usr/local/WebFiles/Html" <Directory ...
2
votes
1answer
40 views

How does file system permission behave on different systems sharing an NFS export?

I'm familiar with how Linux permissions work on a single machine, but what happens when a directory is shared (specifically via NFS)? Also, what happens when two users are seemingly the same (same ...
0
votes
0answers
45 views

Unable to delete a user: user test is currently used by process xxx

I'm trying to delete a user: pgrep -u test ps -fp $(pgrep -u test) killall -KILL -u test userdel -r test But the last command always returns userdel: user test is currently used by process xxx ...
2
votes
1answer
38 views

Why does the `users` command return different users depending on whether I ssh or open a new terminal?

How does users define what users are logged in? If I ssh into a box twice, I see my username twice listed if I execute users. However, if I create a new login shell via sudo su -, I do not see root ...
1
vote
2answers
37 views

How to get rsync to complain if user not found

I'm moving files over from my old server to my new server. By the time I'm doing it for real (as opposed to just testing) I'll have all the "user" users (the non-system users, i.e. >= 1000) created on ...
1
vote
2answers
41 views

Running program using X while different user logged in with gnome shell

My situation is I am logged in to gnome with a user, and through the terminal I am trying to run steam as a different user with the error unable to open a connection to X. Both users can run steam ...
0
votes
1answer
48 views

list users who are all created by current user in linux

I have set of users with root access.I want to know list of users who are all created by currently logged in user. From below structure if user1 login to system , how to list user's like ...
1
vote
0answers
24 views

Is it allowed to assign one range of subordinate IDs to two different users?

Is it allowed to assign the same range of subordinate user and group IDs to different users on the system defining the subordinate IDs? Please provide sources for your answer. The idea here would ...
3
votes
2answers
43 views

How to update user/group settings of a running process?

Suppose I change some user settings like its initial login group or add it to a new group. I now can do su user and work with these new settings. But all the previously running processes will still ...
0
votes
0answers
96 views

How to Sync UNIX Passwords SAMBA4.x?

My current server is running Debian 8 jessie with Samba 4. Its purpose will be to host a simple file sharing server for around 100 people on Windows machines. I already have a collection of UNIX users ...
2
votes
2answers
117 views

Getting Group Names for List of Users

I have a text files with a list of users formatted like: name1 name2 name3 ... Calling the command groups gives the primary group name for that user. ex: bash$ groups name1 name1: ...
1
vote
2answers
47 views

Adding user to the group owning a folder doesn't give that user access

I have the following folders: drwx------ 4 ccote domain^users 4096 Apr 17 11:18 ccote drwxrwx--- 2 ccote ccote_jponchar_gnicolas 4096 Feb 20 10:58 ccote-jponchar-gnicolas ...
0
votes
1answer
84 views

Restrict user to do SFTP on the www folder owned by www-data group

I would like to create a new user with read/write privileges ONLY in the /var/www/ directory including all sub-directories. The /var/www/ is owned by a group called www-data. Best way to do it I ...
13
votes
3answers
452 views

Unexpected Bash completion of ~ on OS X

I pressed ~TabTab on the bash command prompt and got an unexpected set of completions. First it looked like all the folks in the /Users directory, and a lot more. Then I thought it was doing the ...
0
votes
0answers
45 views

Use sudo as login

I've picked up the habit of using sudo and disallowing root logins. In cases, sudo is integrated with GUI configuration tools that require it. Are there any serious efforts to replace login and ...
1
vote
0answers
84 views

Shell Script to change user shell

I am writing a script that would be invoked to change user shell. The basic requirement is that once user gets authenticated (e.g: thorough some web application) the script would be invoked to set the ...
0
votes
2answers
53 views

Setting Up SSH. Just need some understanding

My goal is to build a LAMP server on my arch linux laptop. The main reason is for a web server. The other reason is to learn about how all this administration stuff works. My setup is a laptop with ...
0
votes
1answer
34 views

Killall processes under a user?

So, I know you can pkill -U <uid>, but whenever I've used this, my entire system crashes. Further investigation shows it probably is because I'm not matching anything, so it matches everything? ...
18
votes
5answers
766 views

Find files that a user can write, efficiently with minimal process creation

I am root. I would like to know whether a non-root user has write access to some files - thousands of them. How to do it efficiently while avoiding process creation?
1
vote
4answers
500 views

How to “cat /etc/shadow” on an HMC?

hscroot@hmcserver:~> grep root /etc/group root:x:0:hscroot,ccfw hscroot@hmcserver:~> hscroot@hmcserver:~> ls -la /etc/shadow -r-------- 1 root shadow 5252 2015-05-06 19:36 /etc/shadow ...
0
votes
1answer
54 views

create a linux user with create files and write permissions without sudo access

I want to create a user in such a way that it can create a file and update the contents of the file. useradd username Now for sudo, we can create username and linking to sudo like below: useradd ...
2
votes
2answers
232 views

Find files created by a particular user

How would I go about discovering all of the files created by a particular user and display them to the screen? I've started a script that prompts the current user to enter the username of whom they ...
0
votes
1answer
2k views

Command to list PostgreSQL user accounts?

There are createuser & dropuser commands: createuser - define a new PostgreSQL user account dropuser - remove a PostgreSQL user account Is there a corresponding way to list the user accounts? ...
0
votes
1answer
134 views

linux + send wall message only to the specific user

As all know , we can send broadcast message to all users on Linux machine But how to send message only to the specific user? For example #who rodegc pts/1 2015-05-04 04:23 (10.4.72.1) ...
3
votes
2answers
154 views

How to loop over users?

How can I loop over all users in a shell script? I am writing a shell script to perform cleanup on a system. And if the script is run as root, I want to perform the requested actions in all users' ...
1
vote
1answer
227 views

Difference between adding sudo user with adduser or gpasswd

To add a new sudo user I believe I can call: # to create a new user sudo adduser newusername and to allow this user to use sudo I can do: sudo adduser newusername sudo or sudo gpasswd -a ...
1
vote
2answers
96 views

How to show all registred users and their groups with one command?

I was writing a test on basic Unix commands etc, and there was a question show all registered users and their groups with one command. At the same time I can't use getent command.
3
votes
0answers
21 views

Where do I put my web services? [closed]

I'm administrating my server since a few year but I'm looking for good practice like: What is the best place web service like my wordpress website files? My etherpad-lite instance? Which user shall ...
0
votes
0answers
27 views

When does the “/mnt/username_home_dir” appear?

The problem I have to solve requires the access to the /mnt/username_home_dir directory, but there is no such directory present, despite me creating a user and auto-creation of his /home/username ...
9
votes
4answers
803 views

Why are there many accounts? I'm the only user

I am running an Ubuntu 12.04 desktop system. So far I have only installed some programs (I have sudo rights). When I check the list of users on the system, I see a long list, like more than 20 ...
2
votes
3answers
204 views

How to limit the number of active logins per user?

How can I limit the number of active logins per user? I've seen this on various servers before, and I was wondering how I could set this up myself. Perhaps in those cases, this was accomplished by ...