Questions tagged [users]

Humans using a system. They try to break everything. Always handle with caution. Expect the unexpected.

605 questions
22
votes
1 answer

Usermod -aG vs gpasswd -a as a best practice

I am aware that usermod -g is not best practice from many posts like this however they normally explain the usermod should not be used as it changes the primary group of a user. These posts don't seem to take into account the -aG switch which just…
ZZ9
  • 888
  • 3
  • 16
  • 47
22
votes
4 answers

Unable to remove user: "user is currently logged in"

When trying to remove the user, it returns "user is currently logged in". I already killed the user using pkill -KILL -u usernameHere and several other commands, but it does not help. How can I remove this user? Running CentOS 6.
Xen
  • 458
  • 1
  • 4
  • 16
22
votes
4 answers

How can I set full premissions to a user in a specified dir?

How can I set full permissions to a user in a specified dir in linux?
Alon Gubkin
  • 666
  • 3
  • 7
  • 12
20
votes
2 answers

In what condition, should I create a system user instead of a normal user?

From the adduser command, I saw the option --system to create a system user. A system user will use /bin/false and by default belong to nogroup. It also won't copy the /etc/skel to the home directory. In which condition would I prefer to create a…
steveyang
  • 673
  • 4
  • 10
  • 16
18
votes
3 answers

What User Should NGinx and PHP be running as?

Permissions are something that have confused for me a while with Linux. So at the minute both my NGinx and PHP-FPM instances are running with the user and group : www-data Is this standard? I run into trouble when I come across file…
The Pixel Developer
  • 857
  • 3
  • 10
  • 20
17
votes
4 answers

How to exclude some users from Linux Top screen?

In top screen, by default it shows all users' processes. How to exclude some users(for example, root and nobody) from the top real-time screen?
garconcn
  • 2,388
  • 8
  • 35
  • 46
17
votes
8 answers

How do I find all files and directories writable by a specific user?

Under Linux, how can I find all the files and directories that are writable (or, actually, not writable) by a particular user? Edit: To clarify, I meant under a particular subdir, not systemwide. And yes, that means all the permutations and…
Pistos
  • 3,093
  • 6
  • 22
  • 21
16
votes
1 answer

Check that a given user has a given privilege

Given a pair of a user and a privilege I need to determine if a user has the privilege on the server. The following is true in my setup: The server is a part of a domain but not a domain controller There are several domains with trust relationship…
Andrew Savinykh
  • 526
  • 2
  • 7
  • 21
16
votes
5 answers

How do I change the default location for a users home directory in Vista?

I would like to move the default location of my c:\Users\USERNAME to another drive. What is the easiest way to do this and how? I know that I can move each of my "Special Folders" like Documents, Pictures, etc. but that does not include the AppData…
duckworth
  • 700
  • 3
  • 10
  • 12
16
votes
3 answers

List user's folder access permissions

I have a user in a domain who has access to multiple subfolders in multiple folders. His rights were defined pretty granularly. Now he's leaving the company but will continue to work for a firm as a contracted resource. I need to find all folders he…
imagodei
  • 499
  • 1
  • 3
  • 13
15
votes
5 answers

FTP doesn't allow /usr/sbin/nologin user

I want to setup a ftp for couple of ftp-only users with vsftpd. I configured the FTP to enable local user access. It works fine. But once I edit the users' shell to /usr/sbin/nologin, it couldn't log into the FTP with the following error: Response: …
steveyang
  • 673
  • 4
  • 10
  • 16
14
votes
4 answers

How to use update-alternatives per user

Is there any way to use update-alternative "user wide" ? I mean that it would be great to set preferences per user. Does Debian provide some tools for that?
Maxime
  • 251
  • 1
  • 2
  • 6
14
votes
2 answers

How to set postgresql user password in bash script

I want to set a password for the default Postgresql server user, postgres. I did it by using: sudo -u postgres psql # \password postgres I want to do this step in many machines, so I would like to create a bash script to do the same. How to…
saji89
  • 255
  • 1
  • 2
  • 8
14
votes
3 answers

In Linux, is there a way of seeing which user updated a file?

Does Linux record who last changed a file (rather than created it)? If so, how do I find this out? If not, is there some way of monitoring file(s)?
Umber Ferrule
  • 481
  • 2
  • 6
  • 12
14
votes
3 answers

What happens to a users files when I delete the user in linux?

Thats pretty much the question: I would like to know who owns the files belonging to a deleted user
alfish
  • 3,127
  • 15
  • 47
  • 71
1
2
3
40 41