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

learn more… | top users | synonyms

-2
votes
0answers
41 views

Help with the name of the computer or home directory

I am a really new user to kali linux and I put in kalifornia as my name. So when I open up a terminal it says kalifornia:kali:$. I am the only user and Admin of the computer but I still have to type ...
0
votes
0answers
16 views

User Acces restrict to only one folder - chroot does not work

I want to give a customer access to one folder on my server. I tried to do it as described here, establishing SFTP User rights to one folder only with chroot: User Acces restrict to only one folder ...
1
vote
0answers
47 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
53 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
54 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. After rebooting for the first time since I was ...
0
votes
2answers
30 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
30 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
62 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
19 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
40 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
35 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
39 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
39 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
18 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
146 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
37 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
37 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
36 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
139 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
42 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
43 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
111 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
29 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
84 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 ...
3
votes
1answer
51 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
182 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
42 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
37 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
608 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
154 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
735 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
45 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
52 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
61 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
48 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
68 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
113 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
98 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
31 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
309 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
123 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
203 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
150 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
55 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 ...
0
votes
0answers
34 views

“Suggest” to RPM install the UID of a user that is going to be created?

In an RPM it's possible to create a system account; is it possible to suggest the UID to use? For example; during the normal install say that the UID in use was going to be 100; but I want it to use ...
2
votes
1answer
42 views

How to extract a list of user accounts deleted from the system over a period of 1 year? [closed]

I'm auditing an AIX and a Linux system and I would like to know how many user accounts were created and deleted over a 1 year period. Is there some way of getting this data from the Unix system?
2
votes
3answers
66 views

Redirect SSH user server side

I know that I can create shortcuts for specific users/servers on the client side via ~/.ssh/config or /etc/ssh/ssh_config, but I would like to do something similar but on the server side. That is, ...
1
vote
2answers
77 views

new users can't log in via GUI

I have added 3 new users to the system via a terminal session and defined their password. However at the GUI logon screen when I click on their account and put in the password I get the spinning wheel ...