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

learn more… | top users | synonyms

2
votes
3answers
119 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
51 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
37 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
42 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
0answers
28 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
82 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
61 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
62 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
65 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
37 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
37 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
75 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
22 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, ...
-4
votes
0answers
43 views

unable to “touch” files and “mkdir” directories being any other user other than root in /

I logged in as a user called "srv1" and tried to create a file and directory called "a22" inside "/" but i got an error message as touch: cannot touch 'a22': permission denied and same for ...
1
vote
1answer
48 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
47 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
42 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
19 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
148 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
39 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
0answers
33 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
42 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
39 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
158 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 ...
1
vote
2answers
45 views

Remove group ID from user

How can I remove a group (which was previously deleted) from a user which still references it? If I run groups, I get an error about a non-existent group: $ groups myuser dialout cdrom sudo dip ...
0
votes
1answer
58 views

What has priority - owner/user vs group permission? [duplicate]

I have just run into the case in which the owner-group of a file has more permissions than the owner-user of a file. user1@pc:/tmp$ ls testfile -l ----rw---- 1 user1 user1 9 Okt 16 13:16 testfile ...
1
vote
1answer
179 views

Disable operations outside user's home directory with chroot jail?

I'm trying to restrict a user to a specific directory called gclegal using a chroot jail. I've uncommented the line in the /etc/vsftpd.conf file chroot_local_user=YES Created a new user called kg: ...
2
votes
2answers
32 views

How to add user info when creating a user?

If I create user khadija with username: khadija, how can I populate the fifth field of /etc/passwd? mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash I have not found anything under the useradd ...
0
votes
1answer
128 views

Grant FTP access to specific directory

I have setup CentOS on a box on my local network and installed httpd, PHP, Webmin (and UserMin) etc. I opted for ProFTPd and have opened up ports for FTP, Webmin and Apache. I can now access Webmin ...
4
votes
1answer
69 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
1answer
334 views

Expired password and SSH key based login with UsePAM yes

There is a SLES 11 machine. The users logs in via SSH and pubkey (mixed, some user uses password, some use ssh key) The sshd_config has: UsePAM yes PasswordAuthentication yes PubkeyAuthentication ...
0
votes
2answers
45 views

how to get info about the user and the processes he is running in systemd?

If I wanted to know who is logged in since when and what are the processes currently running under his control, how can I do that in systemd?
2
votes
1answer
38 views

w command for the other network hosts

While the who command refers to the local machine, rwho shows the same informations about all the known hosts of the local network. Similarly, w shows informations about the users on the local ...
2
votes
3answers
637 views

What mechanism prevents any user from accessing any other user's files via root?

On a multi-user system, what protects against any user accessing any other users files via root? As context, the question is based on my understanding as follows: There are two commands related to ...
0
votes
3answers
163 views

Is there a Linux equivalent of the Windows super-administrator?

Windows has a super-administrator account that has not only elevated privileges to perform protected system functions, but unfettered access to anything on the computer, regardless of user ownership. ...
2
votes
2answers
1k views

The name > org.freedesktop.PolicyKit1 was not provided by any .service files

When attempting to launch system-config-users from command line, I get the following warning, and the tool does not open. I'm using CentOS 7 with Mate 1.8.1. WARNING **: Error enumerating ...
0
votes
0answers
44 views

User that can be accessed only from other user account

I have a number of users (23) but I want to create another user that can be accessed only from one of the user account to do some specific task. How can I do it. And obviously this user cannot be ...
0
votes
1answer
50 views

How to create user in Linux without attributes in default group?

I know, how create with attributes adduser -n username GROUP, we find in /etc/default/useradd. But in login.defs, we can add something.
3
votes
3answers
53 views

Understanding a couple of points regarding root privileges

I just wanted to confirm my understanding of a couple of things related to root privileges. Is it correct that: The user name "administrator" is not a reserved name with implied privileges, it is ...
1
vote
1answer
67 views

Securing www directory in Ubuntu/Apache without restricting access to those who need it?

I'm on my first time setting up an Apache2/Ubuntu web server and I'm stuck as to how to achieve the security settings I need. On the www folder - the web root - my www-data group (the apache and PHP ...
2
votes
2answers
51 views

What is the regex to validate Linux users?

When adding a new user, how is the string validated? I suppose there is a regular expression. What is that regular expression?
0
votes
0answers
73 views

can't find my user name in /etc/passwd nor name of my initial group in /etc/group

Here is what i get: [zehu@danville ~]$ groups apl vboxusers [zehu@danville ~]$ [zehu@danville ~]$ grep zehu /etc/passwd [zehu@danville ~]$ [zehu@danville ~]$ grep apl /etc/group [zehu@danville ...
0
votes
1answer
147 views

Create guest account with restricted access to applications

I'm trying to create a guest account in arch linux that only allows the user to use simple applications like firefox. I do not want them to have access to programs like terminal or grub-customizer ...
1
vote
2answers
125 views

Change file ownership, based on previous owner

I am a moderately new linux user. I changed my PC, and started using CentOS 7 from CentOS 6. So I attached my previous hard disk to my new pc to take backup of my files. Now, copying the files (and ...
0
votes
1answer
36 views

How to use programs by users who haven't installed them themselves?

I have created a new user on my Ubuntu Linux at which I am the root. My root account has access to Wine, I want to use Wine from my newly created account without having to install it again. I have ...
-2
votes
6answers
474 views

How to change to normal user in the command line when logged in as the root user?

I log into an system through root via ssh. How do I become the normal user or another user on the system?
0
votes
0answers
162 views

PHP running under “www-data” user

In PHP if I run get_curret_user() it prints www-data. This makes it impossible for me to use this function in order to test a FTP password from input. Is there any way to make PHP run under the ...
5
votes
2answers
234 views

Reasons behind the default groups and users on Linux

Having a look at the default users & groups management on some usual Linux distributions (respectively ArchLinux and Debian), I'm wondering two things about it and about the consequences of ...
1
vote
0answers
223 views

Mount cifs using a credentials file

I am trying to mount a folder from my embedded Linux system to a windows 7 computer. I keep getting Permission Denied when I try using a credentials file. When I do it from command line as root it ...
1
vote
1answer
64 views

Who is user “unset” in aureport?

I couldn't find this elusive "unset" user in /etc/passwd and there is no mention of him in man aureport although she scored the most number of hits on my audit log: # aureport -u -i --summary --start ...