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

learn more… | top users | synonyms

3
votes
2answers
110 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
32 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
25 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
50 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
25 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
37 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 ...
2
votes
1answer
33 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
72 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
36 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
36 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
552 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
135 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
1answer
252 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
34 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
40 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
50 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
48 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
43 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
47 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
69 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
1answer
54 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
24 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
172 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
59 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
163 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
70 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
33 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
27 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
36 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
49 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
51 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 ...
0
votes
1answer
31 views

Adding new users from terminal session

Is there a way to add a new user from the terminal AND have the system setup their user profile? ie, create their home DIR and add then to the sudoers file? I'd like to be able to do this without them ...
1
vote
1answer
30 views

Why can't I login in as the ftp user?

After installing vsftpd I have the user ftp on my system. I assigned a password to this account. However, I still cannot login as the ftp user (on the command line, without any ftp-protocol involved). ...
2
votes
1answer
64 views

Why is there a ! in the password hash?

In /etc/shadow, I have a line that begins: ubuntu:!$6$Pi4BKmX8$........................ Why is there a ! before the $6$ in the hash?
2
votes
0answers
24 views

How to use a separated user with GUI on OpenBSD?

A webbrowser is a GREAT attack vector since people use it to access the "dangerous" internet. Very bad things can come in through to the desktop. So in general for a desktop, we can do the ...
3
votes
1answer
118 views

Why does every user have his own group?

One thing I've noticed in a lot of recent distros is that users all have their own groups with the same name as their user name. What's the purpose of that? Groups are made to group users together in ...
1
vote
1answer
177 views

What steps to add a user to a system without using useradd/adduser?

I was browsing through some Linux questions and saw this interesting question. What steps to add a user to a system without using useradd/adduser? The one possible way that comes to my mind is, ...
2
votes
2answers
54 views

How to prevent a new user to inherit the files of a deleted user?

I just deleted a user with "userdel", without deleting its home dir. Right after the deletion, I created a new user, with its own home dir. What striked me as odd, was that the new user gets the UID ...
3
votes
3answers
117 views

Why only one active group at a time?

As far as I understand the users in Unix system can belong to multiple groups and one of them will become the primary group for that user. Others will be supplementary groups. All of this User/Group ...
1
vote
0answers
28 views

Cannot login to svn server

I have a SVN server on my Raspberry Pi (Raspbian). It has a project under the directory /welcome, I want to add users to it. My users would be admin with password admin and user2 with password ...
2
votes
2answers
58 views

Preserve ownership with rsync and nonexistent user

I have two computers with the same user, me@Home and me@Work. I usually kept their folders synced by bringing Work home (it's a laptop) and rsyncing over LAN. However, now I'm not bringing Work home ...
4
votes
2answers
174 views

Change user info on the command line

I have made a user in Mint 16 but want to change its first and last name without deleting it and starting from scratch. I know how to do it with a GUI but I want to know the terminal command ...
1
vote
1answer
56 views

Unix Useradd - Audit list of users added to system [duplicate]

I would like to understand how could I pull out a list of users that have been added with certain privileges to a Unix system over a certain period of time. Now, I understand one way to go about ...
0
votes
1answer
40 views

Store passwords of Linux users in plain text - on purpose [duplicate]

I want to reset passwords temporarily to log in as root at least one time to change passwords. I have access to the hard drive and I can run a live distro to gain root access. I did think it would be ...
5
votes
1answer
247 views

sudo - impersonating a user

I am trying to use the sudo command and sudoers file correctly so that I can run a command as another user. I have my sudoers file set up as follows: beans ALL = (root,apache) NOPASSWD: ...
3
votes
2answers
42 views

Is it possible to change passwords temporarily?

I have a Linux system with several users. I don't know their passwords, nor do I want to know them. I have to do a batch copy of some of their directories over SSH, with their account and password. ...
0
votes
1answer
137 views

Debian file's permissions for secondary's group of user

I am installing a proftpd server on a debian dedicated server, In order to be able to update some website files in this folder : /var/www/website I have added a new user : my-ftp-user This user's ...
3
votes
1answer
61 views

Default files in home dir for each user

I'm using ubuntu server 14.04. I want to add some files and folders by default in each user's home directory, whenever a user account is created.
0
votes
1answer
26 views

As what user does a command end up executing? [duplicate]

How can I find out as what user a command executes? (I'm running Ubuntu, but I suspect the answer applies to Unix in general). What I'm trying to do is get msmtp running and logging to ...
2
votes
0answers
31 views

How to set up networking on a per-user basis?

I would like to set up access to corporate VPN for just my user account on my computer; not for the other accounts and certainly not for the guest user. To achieve this, I presume, I need to ...