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

learn more… | top users | synonyms

2
votes
1answer
23 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
22 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
33 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 ...
-3
votes
0answers
39 views

Help with script to add new users and assign groups

!#/bin/bash User script Adds user echo -n "Username: " read user_name Creates password sudo passwd $user_name Creates group echo -n "Group: " read group_name sudo usermod -G $group_name ...
-2
votes
0answers
15 views

Unable to create user in RHEL6?

I tried creatíng a user, but I am unable to do so in RHEL6. It shows an error as: [marieswaran@localhost ~]$ user add ieshwar bash: user: command not found
1
vote
2answers
27 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
26 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
43 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
19 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
34 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
39 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
53 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
40 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
31 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
432 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
40 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
54 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
45 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
31 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
605 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
303 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
42 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
79 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
112 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
64 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
115 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
107 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
86 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
17 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
749 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
125 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 ...
4
votes
3answers
86 views

How to add a user to a group in FreeBSD

How can I add an existing user to a group in FreeBSD? The command usermod does not work.
2
votes
4answers
279 views

Is there a way to show the history of the commands used in the shell?

If my Linux installation has three registered user accounts, is possible to check the history of the commands introduced by each one, and how?
0
votes
1answer
43 views

how to view failed login attempts?

I tried to view failed user login attempts since a specific time. But all methods I found by searching the internet does not work. I am using openSUSE 13.2. journalctl -a --no-pager ...
1
vote
1answer
53 views

Prompting for a password on sudo?

I'm creating users using Puppet. Here's the gist of what I'm doing in Puppet: user { 'ntkay': name => 'ntkay', uid => 10000, home => '/home/ntkay', managehome => true, ...
2
votes
0answers
50 views

Catch/diagnose user process being killed - Inexplicably logged out automatically

Context: I'm using bash in Mac OSX Yosemite. Problem: I'm executing a (python) script that I expect to use alot of resources and take a few hours to run, redirecting stdout and stderr to a log file. ...
2
votes
2answers
81 views

Any concerns with using high UID numbers (3000+) on RHEL5+?

The legacy systems has UID numbers up until the low 2000s. In implementing a new user management system, I am looking into options to avoid UID collisions. One option is to just have a list of UIDs ...
2
votes
1answer
44 views

Why am I seeing a number as owner / group instead a name?

CentOS 6.x / OpenVZ Recently my VPS provider moved my OpenVZ container to a new server. After that move, I've noticed that files/directories for one of my user accounts show an odd owner / group. ...
1
vote
2answers
67 views

dialout group missing

I have debian8, (Jessie) and I am trying to add a user to the dialout group. Alas, that group doesn't exist. I would prefer not to add the user to the root or sudo group. what should I do? ~$ ...
-2
votes
1answer
37 views

Print 25 usernames on the system starting in reverse alphabetic order. Print only the usernames,

how to Print 25 usernames on the system starting in reverse alphabetic order. Print only the usernames, nothing else. You should get the information from the /etc/passwd file.? in UNIX Command
-3
votes
2answers
48 views

How to Find the number of password entries that are on the server? in unix [closed]

Find the number of password entries that are on the server? in UNIX
3
votes
2answers
304 views

How to Find UID, GID, and any groups I belong to?

How to Find UID, GID, and any groups I belong to ?
2
votes
2answers
56 views

How does one permissibly access files on non-booted system's user's home folder?

I have a dual boot system with Mint 17.1 and Centos 6.6 I want to access a file in my CentOS user's home directory from Mint. (I cannot boot CentOS right now.) What is a clean/standard method for ...
0
votes
0answers
16 views

What's a good setup for a web server with limited developer accounts?

If possible, I want to avoid giving root access to developers. What would be the best directory/user/permission setup to make sure they can access the web server directories, but nothing else? Should ...
1
vote
1answer
39 views

Linux Create user with specials login options

Hello i need create some users with special privilegies that will be: A user that can only login with ssh, no local, it can do anything in pc search, find, etc like a normal user but only with ssh. ...
0
votes
1answer
30 views

Is there any way of knowing who [including remote users] can access a paticular file / folder?

In Windows you could enter file properties and see which users have an access to a patricular files. [Including remote users / groups that are part of your domain] In unix when you enter properties ...
1
vote
1answer
138 views

How to delete remaining files of removed user?

I know deleting user with userdel username can cause information leakage and other security issues (as tutorial book says, administrator should delete user with -r option). But i tried it to see what ...
1
vote
1answer
135 views

User created with different UID and GID

I'm creating a new user in my system, by calling: sudo useradd -m -G nas -s /bin/bash alf which supposedly should create a new user with the same UID and GID. However the passwd file is appended ...
1
vote
2answers
73 views

how to list users in a group and their passwords

How do I view a list of users in a specific group and their passwords or attributes? I know to use cut -d: -f1 /etc/passwd But this only lists users.