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

learn more… | top users | synonyms

3
votes
2answers
51 views

Why does “logging out” of a session activate a newly added supplementary group? [duplicate]

I asked the following question Added user supplementary group, but 'groups(1)' not showing change earlier today. Now I'd like to know why the answer works. After running adduser user group ...
0
votes
1answer
241 views

Added user supplementary group, but 'groups(1)' not showing change [duplicate]

I'm trying to add myself to the fuse user group but it doesn't look like the change is taking effect even though /etc/group looks correct after invoking addgroup or usermod. I've tried both ... sudo ...
2
votes
1answer
395 views

how can we know which pts in /dev/pts mapping to which ip address?

Can anyone explain , how can we detect which ssh session belong to which ip address using /dev/pts directory ?
4
votes
2answers
292 views

How do I execute a command on login for a system user with no home folder and no personal .bashrc file?

I set these users' home folders through the /etc/passwd file, but when they log in I would like them to activate a python virtualenv. If they had a personal .bashrc file, I'd just include the activate ...
2
votes
1answer
55 views

How do I set a newly created user account to NOT prompt the user to change their password?

I created a new user account, but the user is prompted to change their password on first login. I don't want them to change their password, I want them to use the password they were assigned. How do ...
1
vote
1answer
118 views

Linux statistics script (Google analytics-like)

We own a few servers, each with about 100 users on it, some with 1 domain, some with a few. I'm looking for a script which runs in the background which can provide information about which users uses ...
3
votes
1answer
98 views

New webserver: What all user accounts should I create and permissions to provide for

This is a followup on my question here. I am setting up the first webserver and am fumbling with what user accounts to create and permissions to provide for better security. Below is what I have. ...
1
vote
1answer
35 views

permission on a user I added locally

I added a user to my Mint (Ubuntu) Desktop so that he could ftp files that I can share – I am peter he is john, so we have /home/peter and /home/john. I want to have full permissions on his home ...
1
vote
0answers
72 views

How come the postfix user can't even read its own files?

I have a Postfix configuration file. Let's assume it's named /etc/postfix/somefile.cf. I have run the following command as root to change ownership of the file to the postfix (105) user: ...
1
vote
1answer
225 views

Remove user space quota in Ubuntu 12.04?

I'm trying to install Unity3D but I only have 1.5GB (EDIT: I forgot to mention this is what the Unity3D installer says, but I have also had problems with downloading things of large sizes) free space ...
12
votes
1answer
763 views

How to tell sudo to repeat lecture once?

I'm letting one of my coding buddies have root access to my Raspberry Pi, and as I was getting everything set up, I tested sudo as him. It gave me "the speech": We trust you have received the ...
0
votes
3answers
364 views

How to stop regular users from Switching Users

I want to stop the normal users from using following commands /bin/bash /usr/bin/sudo /bin/su I added them in sudoers file but normal user can still use the following command This is how i add the ...
5
votes
1answer
10k views

Samba share permission denied user writing file but still shows

Very strange issue... Samba share on remote: [javaerpm] path = /u/abas/erpm/java force user = erpm guest ok = yes read only = no writeable = yes Mount command on local using ...
2
votes
2answers
5k views

How to change file owner in AIX?

How can I change a owner of a file in AIX? I created a file using my personal account and then I tried to change user for this file: chown rootuser myfile.csv chown: myfile.csv: Operation not ...
4
votes
3answers
1k views

How to find a file with specific permission of a specific user?

How do I get a list of all the files which permission is "read and write" for a specific user. For example, when I go on the desktop of my mac, then right click on file "A", then "get info", then on ...
3
votes
1answer
939 views

How can a user run a program in kernel mode?

Is it possible for a user to run their own program in kernel mode? How could a user accomplish this? What weakness in the system's protection mechanism would they have to bypass? I'm thinking that a ...
2
votes
3answers
208 views

How to create a user account with specific permissions?

I want to create a unix user account with specific permissions: this user must be able to install software, but can't remove software. Furthermore, when the user logs in, root must receive a ...
2
votes
2answers
290 views

Execute user script as root in startup applications

I just created a script (logscreenlock) to log lock/unlock screen events (derived from this post): #! /bin/bash dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" | ( while ...
2
votes
2answers
544 views

What does the `who` command result `root :0` mean?

The return value of command who will always include root :0 in X Window pts. I guess it actually means the GNOME login. Am I right? Another question is where to get this knowledge, as I don't see it ...
2
votes
1answer
346 views

Sendmail can't find local users (with uppercase letters)

Sendmail works through sending to a smarthost, but can't find local users. # sendmail -bv LocalUser@myhost.net LocalUser@myhost.net... User unknown # grep LocalUser /var/log/maillog Sep 8 03:48:30 ...
2
votes
1answer
71 views

When is an account displayed on the Unity login screen?

What are the exact rules for an account to be offered for login on the Unity login screen? I figured out: Locked accounts are still displayed Without password are still displayed Marked as ...
4
votes
4answers
165 views

“Who” prints duplicated usernames

This is result of who -uH: NAME LINE TIME IDLE PID COMMENT me :0 2013-08-29 01:29 ? 1686 (:0) me pts/0 2013-08-29 01:42 old ...
23
votes
2answers
835 views

Why did a new user inherit files from a deleted user?

So I had to do an exercise in a book as homework. First you had to create a user like: useradd -c "Steven Baxter" -s "/bin/sh" sbaxter Then you had to add some files to the /home/sbaxter directory: ...
0
votes
1answer
61 views

What part of the Linux kernel determines the execution order of userland apps? [closed]

Stripping the source, I can't pinpoint which part of the kernel sets and manages the userland apps, and how it does it. For example, in the Linux main source, is the procedure have options to set ...
4
votes
2answers
3k views

Create user who can only access one directory [duplicate]

I would like to create a user that only has access to one folder and nothing else whatsoever. I have already created a user but he has access to other parts of the system according to corresponding ...
2
votes
0answers
3k views

Permission denied for user accessing mount

Using root I can mount another Linux share no problem. root@crunchbang:/mnt# mkdir javalib root@crunchbang:/mnt# mount -t cifs //10.1.3.7/javalib ./javalib -o username=guest Root can read/write to ...
0
votes
1answer
276 views

Why the non-root user can't login with a key in putty? [duplicate]

I read an article and found it very useful: http://www.howtoforge.com/ssh_key_based_logins_putty I made two key pairs for root and the other user. But it only works for root When it comes to the ...
3
votes
4answers
3k views

How do I know a specified user's permissions on Linux with root access?

I have root access to my local server. And some days ago my colleague created a user on that server, giving me the uesrname and password. But the user has a minimized permissions. Like the user can't ...
3
votes
2answers
149 views

Log in as one user but authenticate as another

This might be a weird question but I wonder if there are possibilities to this. When I'm configuring a system I prefer to be root so that I don't have to sudo everything. However, the root account is ...
1
vote
3answers
124 views

Renaming the system users bin and man without doing harm?

In my setup I need to rename the Linux system users man and bin because I need the usernames for humans. I'm using Ubuntu 12.04. I know that I have to change /etc/passwd, /etc/shadow, etc. But when ...
1
vote
1answer
395 views

halt, poweroff, shutdown, reboot don't require root?

For some reason, I can run halt, poweroff, shutdown, and reboot as a regular user without root. How can I fix this? Is it something to do with user groups, or is it a seting somewhere?
3
votes
2answers
9k views

Restrict FTP user to a directory

Sorry if this is an obvious question, but I don't have a lot of knowledge about this sort of thing, and I've googled for hours, nothing worked. So on a Ubuntu 11.04 server, I want to restrict a user ...
4
votes
1answer
119 views

Where are passwords stored and how are they encrypted in OS X?

I know that on a Linux system passwords are stored in /etc/shadow and are salted and encrypted using a one way hashing algorithm like MD5, SHA-256 or SHA-512. It looks like there is no /etc/shadow ...
7
votes
2answers
304 views

With which user should I run web servers, redis & mongodb?

On this VPS there are three users: root, another_one, nobody. All webserver files, configs, &c. are owned by root. However, I'm in doubt for what regards running things. If I use root for the web ...
2
votes
4answers
473 views

delete a system user account if daemon is no longer needed?

In an unusual scenario, I have to get rid of a specific system user account called 'lp' (line printing deamon) on an openSUSE system. Can I just comment out the line for that account in /etc/passwd ...
4
votes
2answers
5k views

Proper way to add a user account via bash script

I cross posted this question to AskUbuntu because my problem seems most acute on Debian/Ubuntu, but it was suggested that I ask here. Whatever method is suggested for solving this problem should work ...
2
votes
3answers
12k views

usermod -d /path user - User is currently logged in

good Day I want to make a change to a user on my CENTOS server. I want to change his default directory. When running the command: usermod -d /path_to_new_dir david terminal gives me the following ...
12
votes
4answers
7k views

How to check if a user can access a given file?

*nix user permissions are really simple, but things can get messy when you have to take in account all the parent directory access before reaching a given file. How can I check if the user has enough ...
2
votes
1answer
369 views

how to map users and group with sshfs

As you can see below I'm able to map the user from kevcoder00 to kevcoder01 but the group gets mapped to marigold although that group does not exists on kevcoder01 l00py@kevcoder00:~$ sshfs -o ...
0
votes
2answers
62 views

Have rights during shell but not in a script (unless I sudo it)

I have a really basic confusion. How does sudo work? I noticed that when I ran a script it failed, since it tried to write a file in a directory that the following permissions: $ ls -l thedir ...
1
vote
2answers
3k views

change root account username

In windows it is possible to change administrator username for security reasons. Is it possible to change root username in Linux too?
6
votes
3answers
2k views

How can I create automatically expiring user accounts?

This is what I'd like to be able to do: After a user's account is created, they should be able to ssh-tunnel, but their account is automatically removed after 30 days unless the countdown is reset by ...
12
votes
2answers
5k views

What's the difference between a normal user and a system user?

Some documentation I'm going through has a boolean switch on whether or not a user is a 'system' user or a 'normal' user defaulting to 'normal'). What is the difference between these two modes of ...
2
votes
2answers
98 views

Creating a User-less Distro

One of the popular programs I use is GParted, and it has its own custom distro, that boots straight to the desktop, and starts the program. I couldn't find any information on creating such a distro. I ...
5
votes
2answers
682 views

Deleting users with nologin shell

On a security audit performed on our production Linux servers , we were asked to remove nobody user if no application are using it. I checked and could see that there are no files owned by 'nobody' ...
2
votes
3answers
2k views

CentOS can't remove user from group

Asked and answered many times, but I can't get it working!!! (On CentOS) I have the user userA and I want to remove it from group sftponly. #groups userA userA : sftponly #id -Gn userA sftponly ...
2
votes
3answers
504 views

I have installed Linux distribution. Do I need to set root account or the user account is enough?

I have these credentials that I am using for logging in with my Linux distribution (Ubuntu 13.04) when starting the computer: james myawesomepassword123 I type the password on the login screen and ...
4
votes
2answers
249 views

Understanding getlogin()

I think the previous iteration of this question was a little bit like a carpet bomb of questions, so that may have turned people off to it (to the point of almost being flagged for removal) so I'll ...
1
vote
3answers
3k views

Get environment variable of other user [closed]

Is there a way I can see the environment variable of an other user? I want to do that as root, so permissions won't be a problem I guess. For the user himself, I use echo $PATH or set | grep PATH ...
-2
votes
2answers
79 views

How to see Current users on the system

I need a script to identify only and only users ( current users ) on the system and what actions they are performing. I use w , but don't show user's actions that are currently performing ... and PS ...