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

learn more… | top users | synonyms

2
votes
0answers
179 views

How could a user log in via tty

I rented this cloud server, and it is kind of attacked recently. I can see a suspicious user logged in via tty. leetom@S152:~$ last -x ayn1 ayn1 tty1 Wed Oct 28 18:59 - ...
3
votes
2answers
53 views

Creating a user having only access to folder & sub-folder which is present in other user of the same System

I have 2 users on my ubuntu system, User1 and User2. I have a directory(folder) in User1 as /home/User1/Software and I want to set this Software folder as home directory of User2 so that whenever ...
0
votes
2answers
32 views

User-dependent packages/files in /lib

I have setup a 2-seat computer. I start one X11 server using the computer's onboard graphics card (intel) and another in the dedicated one (nvidia). Everything runs fine, except opengl. Currently, ...
1
vote
1answer
32 views

Security - Runing Daemon, program as root or user vs sudo su

I have some questions about Linux security: Running a process as root is a big mistake (root has too much power + a program get too much permissions in the system). I always ran processes as a user ...
3
votes
1answer
38 views

chpasswd and openssl

I'm trying to pass an MD5 password to chpasswd but it doesn't seem to work. echo username:$(openssl passwd -1 -salt salt password) Then I try to pass this to chpasswd to change the password echo ...
2
votes
1answer
38 views

how to prevent access to other user with same user id (UID)

I have two Linux OS installed in two partitions in my system. However I have few usernames which are common in both partitions. For ex, I have user friend in both the OS. I have noticed that friend ...
2
votes
0answers
41 views

How to kill all vpns on switch user Mint 17.2

I'm using mint 17.2 cinnamon. I'm not particular about the method, just want it to stop all vpn connections (openvpn, listed in network manager) when I switch users or logout. nmcli doesnt provide a ...
9
votes
1answer
151 views

How can I create an account with a copy of the same home folder?

I have a 'user1' account with the home folder set up. I'd like to create a 'user2' account with a copy of the same home folder setup. Is it possible to do this?
2
votes
1answer
86 views

Why useradd -m doesn't fill created home dir with some defaults?

My motives: I want to create deployment script which prepare all system with just 1 click, and although learn Linux this way. So I don't want to use interactive utils like adduser (all interaction ...
3
votes
1answer
64 views

Why there is a group member field in both /etc/group and /etc/gshadow

I am learning more about Linux user and groups in depth and noticed fourth field in both /etc/gshadow/ and /etc/group are exactly same. Do they have any difference or is there any special reason why ...
0
votes
1answer
65 views

user exists when trying to add user to systemd-journal group.

I have been wanting to read systemd-journal by running/using journalctl -b . Now if I run it as a user I get the following :- $ journalctl -b Hint: You are currently not seeing messages from other ...
2
votes
4answers
152 views

Authentication failure on Amazon Linux

There is an authentication failure when I'm trying to enter password for any of my accounts. I am logged in using ssh to my AWS EC2 instance. After a while I checked the privileges to files that ...
1
vote
2answers
56 views

Which user is running the most processes?

My top looks like this: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6524 asjzdiwq 30 10 500m 41m 24m S 0.0 0.3 0:15.27 php-cgi 21274 asjzdiwq 30 ...
0
votes
0answers
23 views

newusers causes segfault

I am trying to bulk-add 433 users via newusers. The newuserlist.txt file I have contains users with up to 16 chars usernames with questionable patterns (numbers at the beginning and capital letters). ...
0
votes
1answer
1k views

$USER != whoami

I'm trying to re-install homebrew on my mac. I get this error: michaels-1856:~ michael.snowden$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This ...
2
votes
0answers
37 views

Changed username - Could not update ICE authority file

I tried to change my username by creating another admin account, restarting, then logging into that new account. Then, I entered the following command: sudo usermod -l NewUserName -d ...
2
votes
2answers
592 views

When trying to change username, terminal tells me user is currently used by process

I am trying to change my username, as per advice here however after running the following command: CurrentName@HostName ~ $ sudo usermod -l TheNameIWantToChange -d /home/TheNameIWantToChange -m ...
0
votes
2answers
50 views

How to add “system” local user like mysql or tomcat?

My system has a lot of users, I'v never created, like mysql or tomcat. These users have no home directories inside /home Obviously, a daemon programs run under these users. What is the term for such ...
0
votes
1answer
138 views

Creating a new FTP user and giving him only the right to 1 folder [duplicate]

I have a Linux Debian machine that I own (root access). I would like to create a new user called "testuser" and give him the right to view, edit and delete files from only one specific folder ...
3
votes
3answers
99 views

How can I run a program as another user in every way?

Background I'm trying to restart some programs (mail-notification and stalonetray) regularly, as they appear to die frequently. I want to set restart them whenever NetworkManager reconnects. Hence, I ...
7
votes
2answers
83 views

How to completely remove the user subsystem from Linux?

Is it possible to completely remove the user subsystem from Linux. I'm NOT talking about preventing people from logging in. I'm talking about removing the parts of the system that even make it ...
0
votes
0answers
58 views

root's login shell is invalid, how do I restore it?

I have accidentally changed the root user's shell from /sbin/sh to /sbin/false. I don't have any other login and the only way I can access to system is through SSH. How can I retrieve back root ...
0
votes
0answers
45 views

Creating a new user for FTP with access to a specific dir

After following all of the instructions found here: How to create a FTP user with specific /dir/ access only on a Centos / linux installation I am having some troubles. For some reasons the new ...
2
votes
1answer
84 views

How to Use who/w with Non-Interactive SSH logins

I'd like to perform selective shutdown of a server in my house after backing-up over SSH. My post-backup script waits for five minutes and then runs a very short 'safe shutdown' script located on the ...
-2
votes
1answer
119 views

Changing normal user uid to 0 to normal uid

I have given a normal user root permissions on Linux by using this command: usermod -u 0 -o username How can I go back and make the user a normal user again? ex: # grep Jack /etc/passwd Jack ...
1
vote
2answers
66 views

Lock a user with his home folder

Is there any way of making a user only able to see and modificate his home folder? I am currently on arch linux. Just explaining a little better, the user would not be able to see /etc or any other ...
2
votes
0answers
52 views

Use network-manager in different netns

In continuation of my last question about using netns as a relugar user, I'm now looking for a way to open VPN tunnels as a regular user. So I naturally thought about network-manager. Any user can ...
0
votes
2answers
234 views

What user should I create and execute cron jobs as? Apache? Root? Me?

I'm setting up a new Webserver and having trouble getting cron to execute as expected. I am using a script to create cron jobs in .tmp/crontab.txt, which is then moved to /var/spool/cron under the ...
0
votes
0answers
25 views

sftp user with appropriate permission

I'm new to linux user permissions and having trouble configuring a user. So the scenario is, I have apache installed on centos. I've a virtual host with document root at /var/www/sitename/public_html ...
0
votes
0answers
38 views

How to Duplicate user?

I'm in Cloud 9 IDE, and I want to clone the default user for better collaboration. I know it's not just a simple copy of the /home/<username> folder from Archlinux wiki, which tells me about ...
1
vote
1answer
150 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
29 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
320 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' ...
2
votes
2answers
185 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
2answers
138 views

Passwordless login (physical 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 a requirement ...
2
votes
2answers
130 views

Bash cannot act 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 thought was to: $ sudo su nobody This account ...
1
vote
1answer
46 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
389 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
177 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
29 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
33 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
57 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
39 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
43 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
79 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
18 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
22 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
97 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
67 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 ...