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

learn more… | top users | synonyms

2
votes
2answers
115 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
81 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 ...
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 ...
6
votes
6answers
20k views

How can I create and grant a normal user with root privileges?

I'm wondering how to create and grant a normal user (for example, named 'sybase') with root privileges? I found useradd, adduser, and passwd to be useful, but are there any other files to modify to ...
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 ...
3
votes
2answers
152 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' ...
18
votes
5answers
761 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?
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? ...
0
votes
3answers
219 views

How to restrict one user files to another user

On my machine there are user accounts. My question is how to restrict access to ones user files. Meaning no one else can access my files at all. How can I setup this restriction? How many root users ...
20
votes
5answers
16k views

How do I completely disable an account?

How do I completely disable an account? passwd -l will not allow anyone to log into an account using a password but you can still log in via private/public keys. How would I disable the account ...
1
vote
4answers
495 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 ...
1
vote
2answers
2k 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
0answers
56 views

Is it possible to register “virtual” user/group IDs in a Linux system?

Is there a standardized mechanism in Linux which can be used to tie usernames to user IDs without actually creating a system account that can log in? It would seem something like this is possible, ...
19
votes
1answer
4k views

User permissions inside and outside of LXC containers?

I'm running some services inside of Docker LXC containers on my server and I'm beginning to actually do serious things with them. One thing I'm not clear on is how user permissions work inside and ...
58
votes
4answers
16k views

What are other ways to share a tmux session between two users?

I'm looking for a clean and easy way to share a tmux session with another user on the same machine. I've tried the -S socket-path option, but it requires opening up all permissions of the socket-path ...
2
votes
2answers
229 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
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 ...
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? ...
20
votes
10answers
5k views

How to create strong passwords in Linux?

I wonder how I can create strong passwords on Linux (for both normal and admin users) and if there are specific programs to do that.
0
votes
1answer
132 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) ...
16
votes
5answers
23k views

User-friendly command to list all users on Ubuntu system?

Is there a user-friendly command I can use to list users in a console on an Ubuntu system? When I cat /etc/passwd I get a hard-to-read list of users. It would be nice to see an alphabetized list, ...
2
votes
3answers
203 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 ...
9
votes
4answers
801 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 ...
1
vote
1answer
222 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 ...
4
votes
3answers
146 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.
6
votes
1answer
317 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
282 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
66 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 ...
7
votes
5answers
22k views

Disable user shell for security reasons

We have several user accounts that we create for automated tasks that require fine-grained permissions, such as file transfer across systems, monitoring, etc. How do we lock down these user accounts ...
1
vote
1answer
64 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, ...
3
votes
2answers
6k views

smbpasswd failed for new Samba install on fresh Ubuntu 11.04

I've installed Samba on a fresh Ubuntu install. I run the command sudo smbpasswd -a someuser New SMB password: Retype new SMB password: Failed to add entry for user someuser. I've read that you ...
7
votes
3answers
9k views

Allow user1 to “su - user2” without password

I need to allow user martin to switch to user martin-test without password su - martin-test I think this can be configured in /etc/pam.d/su. There are already some lines in that file which can be ...
2
votes
0answers
62 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. ...
5
votes
2answers
113 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
votes
2answers
109 views

Prevent autologin to the admin account

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 Windows 7 then options are comes for ...
2
votes
2answers
108 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 ...
1
vote
2answers
136 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
55 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. ...
-2
votes
1answer
40 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
50 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
381 views
5
votes
2answers
805 views

How can I start a 'screen' session as non-root user

Is there a way I can open a new 'screen' session on my RHEL box as a non-root user? When I try to open a new screen using the 'screen' command as a non-root user, it fails and I get the following ...
2
votes
2answers
75 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
19 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
43 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. ...