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

learn more… | top users | synonyms

0
votes
1answer
29 views

View which users exist on a remote computer?

If I have the IP address of a computer running Linux is it possible to see which user accounts exist on that computer, without having to ssh into it first?
1
vote
1answer
21 views

Globally writable files and user-based process jailing

I want to be able to generically pick a certain executable (potentially malicious) x and run it (from an admin account) with write access restricted to certain directories (dynamically deduced) ...
0
votes
2answers
187 views

Creating an automated idle process kill script

I would like to implement a solution to a specific instance of the generic problem wherein idle users tie up resources. I know the user list can be retrieved with w, the associated PID with ps, and ...
0
votes
0answers
10 views

Account expiration gets updated automatically in linux

I am trying to disable user account expiration for one of the users in linux. Below is the command I used: sudo chage -m 0 -M 99999 -I -1 -E -1 cits user1@host-01:~$ sudo chage -l cits Last password ...
1
vote
0answers
11 views

PHP running as root on Apache2 running as daemon

On one of my servers, Apache2 is running as daemon user: [root@sbecby07 ~]# ps -ef | grep httpd root 1114 29432 0 10:13 pts/2 00:00:00 grep httpd root 29773 1 0 09:03 ? ...
-2
votes
1answer
27 views

How to view an specified user's pemissions in linux? [closed]

can anyone please suggest me how to find out the permissions of a specified user in linux? I'm getting the information regarding the files/groups etc. But I need specific users permissions ...
1
vote
5answers
50 views

tar without preserving user [duplicate]

I'd like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there doesn't seem to be any way to not do that? (There is a --numeric-owner option ...
199
votes
8answers
757k views

How to switch between users on one terminal?

I'd like to log in as a different user without logging out of the current one (on the same terminal). How do I do that?
1
vote
1answer
20 views

Difference between users listed under home directory and those not

I see some of the users I can find under /home directory in centos but not rest of the users. Users that are listed under /home directory, I can login as those users with command su username To ...
4
votes
1answer
220 views

How do you give a developer group access to apache, MySQL, php and the webroot?

We have 3 web designers that are currently logging in to our server via root to configure apache and setup websites. I have very basic linux knowledge (I'm a web designer) and have created users and ...
-6
votes
1answer
24 views

Important files to be backup [closed]

I need to know what is the most important files to be backup in Linux server.
0
votes
0answers
95 views

Unable to log in to any user accounts on a fresh install of Arch linux

Has anyone run into the issue of not being able to log into their root account after a fresh install of Arch Linux? I have tried setting the root password twice with the passwd command within the ...
3
votes
2answers
65 views

Give /var/www files access to www-data and my user?

Any folder than I want my php code to be able to save in or any file I want it to be able to modify has to be owned by www-data. This is annoying because everything I create or want to edit without ...
1
vote
1answer
75 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 ...
-1
votes
2answers
71 views

Creating a user without a password on NetBSD

On my NetBSD installation, I have it set so that root has no password. I can login as root without typing a password. But, when I create a user with just useradd -m <username>, log out, then ...
4
votes
1answer
1k views

How do I stop Apache from running as root?

New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before. I started ...
4
votes
2answers
2k views

Disadvantages to having www-data able to log in

I run a tiny web server basically just for hosting small data projects and files. This server has a public IP address. I would like to be able to FTP in and upload files directly to /var/www/*, and ...
31
votes
2answers
88k views

What user should apache and PHP be running as? What permissions should /var/www files have?

I just spun up an Ubuntu 11.10 box and then ran apt-get install apache2 php5 to install apache2 and PHP 5 on the box. Now it is functioning as a "web server" and it loads the "It Works!" page. Now I'm ...
41
votes
7answers
24k views

Does /usr/sbin/nologin as a login shell serve a security purpose?

In my /etc/passwd file, I can see that the www-data user used by Apache, as well as all sorts of system users, have either /usr/sbin/nologin or /bin/false as their login shell. For example, here is a ...
3
votes
1answer
25 views

Unable to change username (“user <olduser> is currently used by process <number>”)

I already read this, but it hasn't helped. Not having logged in to the 'olduser', I type sudo usermod -l 'newuser' 'olduser' and it yields the error message from the title of my question. What can I ...
9
votes
3answers
259 views

Set-uid executable and resulting process user

In Ubuntu 14.04, the passwd executable is -rwsr-xr-x 1 root root 47032 gen 27 01:50 /usr/bin/passwd and the ping executable is -rwsr-xr-x 1 root root 44168 mag 7 2014 /bin/ping so (for both) ...
0
votes
1answer
37 views

Process login vs user login

In a Ubuntu 14.04 system, who has the following output: user1 :0 2016-05-02 14:49 (:0) user1 pts/4 2016-05-02 15:10 (:0) So apparently just the pts/4 is used. But, for example, ...
2
votes
2answers
56 views

When opening a terminal does not require a login?

Speaking about Linux and in particular Ubuntu (from 14.04) systems: Case 1 - As pointed out in this answer, processes that allocate a pseudo-terminal don't need to make a login: for example, cups. ...
1
vote
2answers
11k views

vsftp user authentication problems

I configured my ftp user's home dir to /var/www and set a password but I cannot login with ftp 127.0.0.1, it keep giving me 530 Login incorrect. Why is this? I'm sure I have typed the password right. ...
0
votes
0answers
28 views

How to run application with user created by package-manager

I'm packaging a binary application, and for permission issues decided the best approach would be for my package to create it's own user/group. I'm now using a postinst script, adding the user as: ...
0
votes
0answers
35 views

Restrict Users to their home directory

I use WebMin/ProFTPD on my CentOS7 VPS. I already checked the proftpd.conf and it contains the line: DefaultRoot ~ !adm But when I create a new user they can access all on the server from the root. ...
5
votes
2answers
50 views

Change user id and group id ownership of files within a tarball?

I have a tarball and the files it contains do not have the right user and group ownership. Files are owned jenkins:jenkins and I'd like them to be owned naftuli:othergroup. Is there a way for me to ...
1
vote
0answers
34 views

How to reduce the bandwidth using squid proxy delay pools

I have a LAN with user PCs that managed by linux squid proxy server. IP ranges : User1 category: 192.168.1.2-192.168.1.12 User2 category: 192.168.1.13-192.168.1.23 User3 category: ...
6
votes
1answer
13k views

What audit log files are created in linux to track a users activities?

One of the machines on our networks was consuming a large amount of Internet bandwidth. However no user was using the system. When I connected to the server using SSH and ran who it showed that a ...
22
votes
6answers
69k views

How can I look up a username by id in linux?

The command id can be used to look up a user's uid, for example: $ id -u ubuntu 1000 Is there a command to lookup up a username from a uid? I realize this can be done by looking at the /etc/passwd ...
3
votes
4answers
6k views

Allow paswordless user to change to another passwordless user

I have two users dev and tomcat neither of them have a password. How can I allow dev 1 do su - tomcat without having him having to enter any credentials? 1 connects with ssh keyfile
-1
votes
1answer
19 views

Have I missed anything? user1 is not in the sudoers file [duplicate]

I've created a user on a server where there was only root as: # adduser user1 with a password. Then # su - user1 And then: $ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - ...
0
votes
0answers
22 views

Need to fix user access on centos

I screwed up user permission for my account "yann" on a centos 7 server. I would like to have that user to access rw on all folder under /home to manage the webserver folders. Each top level folder ...
1
vote
0answers
43 views

Changing password for Debian live

I have a hooks file, in the hooks folder, that looks like this: echo "root:rootpw" | chpasswd echo "user:userpw" | chpasswd After boot, Debian asks for user and password. When I type user along ...
1
vote
3answers
72 views

Is it safe to disable shell access to all users listed in /etc/passwd?

I have just read about how to disable shell access for users in Ubuntu in this post for security reasons. Is it safe to disable shell access to all users listed in /etc/passwd except the root:x:0:0 ...
3
votes
1answer
47 views

How to get number of opened file descriptors for user

I know about lsof and ls /proc/*/fd but none of them are atomic AFAIK. Because in the latter case I would need to get all pids for user and then filter by them and by that time some of the file ...
6
votes
2answers
11k views

What is nobody user and group?

On my server (Synology DS212) some files and folders have nobody nobody users and groups. What are the characteristics of this user and group? Who can write of read this file? How can I change it ? ...
1
vote
1answer
29 views

dconf fails when running X application from alternate user

In an effort to protect my personal files in my home directory, I am trying to run certain applications as an alternate user, but under the same graphical environment. I have enabled X permissions by ...
0
votes
0answers
15 views

What does 'addgroup' do compared to 'groupadd' [duplicate]

I am new to Linux and have started using Ubuntu. One thing I am having issues with is adding users due to the lack of easy to find information on the subject. I have noticed that there are two ...
1
vote
2answers
2k views

FreeBSD telnet does not take root login

I have just installed FreeBSD 8.1 as a VMWare host and can establish ipv4 connectivity to the instance and telnet through the virtual console. I have also uncommented the /etc/inetd.conf lines telnet ...
13
votes
3answers
19k 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 ...
0
votes
1answer
27 views

What's the difference between lpasswd and passwd commands?

Studying the CentOS/RHEL sysadmin manual, I can't understand if there are or what are the differences between these commands.
20
votes
8answers
23k views

How do you create a user with no password?

In os X it's possible to have users without passwords. If you inspect them with dscl their password show up as *. This is used for system users such as users for databases like mysql, pgsql etc. ...
9
votes
2answers
10k views

How can I create users with only remote ftp access on Linux server?

I'm running a Ubuntu 10.04 LTS server and I want to create users who can only access the server from FTP. What I did so far is: Install vsftpd Create new user with default login shell set to ...
0
votes
0answers
44 views

Authentication required to edit Sudoers - User not listed

I made a small typo in my sudoers file, nothing a simple pkexec can't fix. The problem is that when I added my user with "adduser name" and added "name" to visudo, as well as the root and sudo ...
23
votes
6answers
22k 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
1answer
14 views

Error while logging in to a NIS server using the desktop GUI

When trying to login to a user account on an openSUSE based NIS server on a local network I receive the error message Cannot enter home directory. Using /. The following is the console error message ...
0
votes
2answers
41 views

Should I create should my own user with less privileges on a server (Digit. Ocean)?

I'm trying to deploy a website at Digital Ocean. I have the user root as the default. However, since it's root I believe I should create my own, normal user, shouldn't I? Nonetheless, in the ...
2
votes
2answers
27 views

User Admin - View Permissions when 750 is used for home

apologies if this question is caused by a fundamental misunderstanding. But as main admin of a server: I want to make it so that users cant see each others home folders. (so I chmod 750 the home ...
2
votes
2answers
5k 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 ...