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

learn more… | top users | synonyms

1
vote
1answer
71 views

Shell Script for collecting user login dates

I'm having trouble making a shell script that will make a list of all the dates when users log in. I want the most recent entries to be on the top (because I know if you just use date >> ...
2
votes
1answer
996 views

Proper way of changing username in Ubuntu or any linux

I am using Ubuntu 12.04 and made some customization. I will also make it a new iso which is customized ubuntu. What I want to ask is how can I change my username. There are plenty much configuration ...
8
votes
1answer
2k views

In /etc/group what is the meaning of the second field?

A sample /etc/group file contains the following entries: root:*:0: adm:!:4:logcheck antoine:x:1000: The man pages I've read (Debian & OSX) says the second field is to store a group password. ...
1
vote
2answers
200 views

talkd doesn't print a message

I wanted to use talk with my brother (we both have Debian jessie). So i installed inetutils-inetd, inetutils-talk, and inetutils-talkd. Now i wanted to try wether it works. So i created a testuser ...
5
votes
1answer
351 views

How do I sftp to a server if the username contains @ symbol

I have to sftp to a server to a specific port but the username contains the @ symbol. suppose the user is "user@domain.com" and the ftp server is just "domain.com" I will end with sftp -oPort:8777 ...
1
vote
1answer
30 views

How to check where users come from? [duplicate]

w command displays useful information about where users come from and what are they doing. A example of its output is: ~ $ w -V procps version 3.2.8 ~ $ w 13:53:14 up 164 days, 3:12, 5 users, ...
2
votes
1answer
58 views

Why do I see myself twice when I run the who command? [duplicate]

When I run who on my ubuntu laptop I see myself listed twice. Once with pts/0 and once with pts/2. Why is that?
1
vote
4answers
3k views

What type of permissions should a user's home directory and files have?

I'm working with a fresh install of Ubuntu 12.04 and I've just added a new user: useradd -m testuser I thought that the -m flag to create a home directory for users was pretty standard, but now ...
3
votes
2answers
47 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 ...
2
votes
1answer
216 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 ?
0
votes
1answer
163 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 ...
1
vote
2answers
5k views

How do I log out of all my active sessions?

For some reason, I have a few open sessions on an SSH server that I don't know about. I assume they're leftovers from when my pipe broke. $ users user1 user2 user3 me me me me Is there a way to log ...
4
votes
2answers
244 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
49 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
99 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
89 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
31 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
65 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
157 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 ...
0
votes
3answers
183 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 ...
12
votes
1answer
436 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 ...
4
votes
1answer
4k 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 ...
1
vote
4answers
2k views

Getting a list of users by grepping /etc/passwd

For a homework assignment, I need to use grep to parse /etc/passwd and get a list of all users (their usernames only, nothing else). It should use a pipe, and the results should end up in the allusers ...
4
votes
3answers
481 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 ...
2
votes
3answers
169 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 ...
3
votes
1answer
530 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 ...
29
votes
7answers
17k views

How do you kick a benign user off your system?

I was googling this a bit ago and noticed a couple of ways, but I'm guessing that google doesn't know all. So how do you kick users off your Linux box? also how do you go about seeing they are logged ...
2
votes
2answers
366 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
2answers
210 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
3answers
8k 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 ...
11
votes
4answers
15k views

User-friendly command to list all users on Ubuntu system?

Is there a user-friendly command I can use to list users in a console on an Ubuntu system? When I cat /etc/passwd I get a hard-to-read list of users. It would be nice to see an alphabetized list, ...
2
votes
1answer
69 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 ...
6
votes
4answers
16k views

How can I create and grant a normal user with root privileges?

I'm wondering how to create and grant a normal user (for example, named 'sybase') with root privileges? I found useradd, adduser, and passwd to be useful, but are there any other files to modify to ...
4
votes
4answers
137 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
797 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
59 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 ...
3
votes
2answers
2k 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 ...
1
vote
3answers
111 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
0answers
1k 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 ...
3
votes
4answers
369 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 ...
-1
votes
1answer
198 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
2answers
134 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 ...
0
votes
2answers
4k views

Avoid asking password if `su -m user command` is used under `user`?

If I run the script containing su -m user service userservice start under root user, I do not need to enter the password. But when I run it under user user, it asks passwords all the time. That really ...
3
votes
3answers
2k views

Another account with same uid as root gets prompted to set new password for root, not itself

After upgrading the os from 5300-06 to 5300-11, this weird behaviour happened. My system had another unix account, let's call it "abc", purposely configured its uid to 0 for working as a root with ...
10
votes
4answers
13k views

can we know the password for the other users if we have root access?

If a person has root access to a particular RHEL machine, will they be able to retrieve the password of the other users?
2
votes
2answers
6k 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
89 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
213 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
2answers
583 views

How to set permissions what users can see (drives, folders) on opensuse 12.1?

I have a several users on one machine and its needed to specify which user can access (read & write) specified folders and/or mounted drives. First of all, one user shouldn't see a ...
2
votes
4answers
307 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 ...