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

learn more… | top users | synonyms

2
votes
1answer
111 views

Is it possible to log directly into chroot?

Lets say I boot up my computer and I see the login screen. When I log in as myuser, I want to be restricted to a certain root directory via. chroot. Let's assume that the directory is ...
2
votes
3answers
120 views

Is unix good with many users/groups?

If I have 10,000 webapps on my server and I'd like enhanced permissions and make a user for every app (/var/www/NAME will have a matching /tmp/www/NAME), will everything be fine or will problems occur ...
2
votes
1answer
154 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 ...
2
votes
1answer
689 views

Deny external SSH access to a user

Is it possible to deny access to a user (in my case www-data) from outside the network? Or possibly deny this: ssh www-data@example.com But allow this if already logged in: su www-data
2
votes
2answers
63 views

Changing username still leaves old traces

I changed my username about a month ago, and although I have forgotten the specificities of how I had done so, I'm pretty sure I followed the instructions on the Arch Wiki. Since then, some programs, ...
2
votes
2answers
276 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
3k views

How do I add a new user to an embedded Linux system by hand?

I have a system which was designed for use by root only and I want to run an FTP server on it. The software I use handles authentication by using same username and password as OS itself. To me it ...
2
votes
1answer
116 views

rc control user

I am playing around with rc scripts. I am starting a daemon from rc.local. I would like to know how I start the process under a specific user instead of root?
2
votes
2answers
77 views

Convert numeric string from file to exit code in shell

I'd like to grep /etc/password for a username and return the last two digits of a user-id number as the return code. This is because I have an application whose main way of interacting with other ...
2
votes
1answer
83 views

With NIS users, how to find out which users are currently logged in?

I'm using a NIS server to control 100 clients. I'm using NIS for centralized authentication and NFS to share the home directory. The main problem I'm facing is that I cannot find out which users are ...
2
votes
2answers
916 views

su - user doesn't work for users without a password

I've created a user on CentOS with useradd -M username. Now, I want to become that user just like su - username. It asks me for a password for that user but I didn't set a password for that user. As ...
2
votes
1answer
44 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 ...
2
votes
1answer
146 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
840 views

How to change the username in Ubuntu 10.10?

I want to change a username. In the prompt, which says abhishek@hello$, I want to replace abhishek with alok (i.e. alok@hello$). Is it possible to do that without reinstalling Ubuntu?
2
votes
2answers
119 views

How to generate folder ownership lists for each user?

I'd like to generate several separate lists for each user in Ubuntu. The lists contains the files and folders belong to each user. Using the command following list me all the users in the system: ...
2
votes
1answer
137 views

Where can I find a reference to the format of the comment field (field 5) of the /etc/passwd file?

In the /etc/passwd file on my system, the "comment" field, field 5, is inconsistent in its contents. I thought that I could extract it to get the full name of the user. fullname=`awk -F: '$1 == name ...
2
votes
1answer
6k views

Changing user and group ID system wide (including file system attributes)?

(this question possibly related to Linux: simulating/masking user ownership upon mount of 'external' partitions? - Stack Overflow) I typically use Ubuntu (currently 11.04) as my desktop OS; let's say ...
2
votes
2answers
3k views

How can I switch one user to another in Freebsd?

How can I switch one user to another in Freebsd? For examples, I am user david now and I want to change to user Bob. This is a personal OS for my study. not a server. I searched it, but only got ...
2
votes
2answers
4k 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 ...
2
votes
2answers
482 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
4answers
195 views

Open program as root, close root session but still program is running

When I run my backup script, first I switch to root, mount a truecrypt partition and then run the script. I've noticed that after run truecrypt as root, I can exit the root session and truecrypt ...
2
votes
3answers
2k views

Whoami: cannot find name for user id 0

When I run whoami it says: whoami: cannot find name for user id 0 My /etc/passwd file looks like this: root::0:0:root:/root:/bin/bash
2
votes
1answer
163 views

Delete every users from a group

I search a clean way to delete every users from the 'sudo' group. On several distributions the user created during the installation process has sudo rights, I don't want this. I search for an ...
2
votes
1answer
62 views

Optimal way to setup user account / accesses?

I have a (home) Ubuntu machine; upon installation I created the "x" user during the installation (who is not the root) so often when I want to run apt-get or other things that require write access to ...
2
votes
4answers
1k 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
2
votes
1answer
2k views

Changing my default primary GID for every login session

I read the following about newgrp: The newgrp command is used to change the current group ID during a login session. This made me think, how can I change my default's primary group ...
2
votes
1answer
174 views

'who' has no output

I'm new to Arch Linux, and I just built my system up. But when I ran who in urxvt, I got nothing. Anyone know what's going on? BTW. I use Slim + OpenBox. And here are parts of my configure files. ...
2
votes
1answer
17 views

can't change user

I setup vsftp with my ftp users' home directory at /var/www but I realized, it wouldn't let em login by ftp, I tried to connect to 127.0.0.1. So then i wanted to "try out" my ftp user on the shell but ...
2
votes
1answer
35 views

tftpd runs as root, despite explicit option “--user tftp”

I start my tftp server with the option --user tftp so that it runs as user tftp instead of root. However, ps shows that the process still runs as root ps aux| grep tftp root 2542 0.0 0.0 ...
2
votes
2answers
69 views

Configure external HDD for use with multiple linux PCs

I've got an external drive, and I'd like to have a linux partition on it. I formatted everything correctly on one machine with Fedora20 (I have one ntfs and one ext4 partition), but when I plug it in ...
2
votes
2answers
568 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 ...
2
votes
3answers
149 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
1answer
59 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 ...
2
votes
1answer
75 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 ...
2
votes
3answers
332 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 ...
2
votes
1answer
103 views

Adding a user to a group by default

I have a group that all users on the system share. The group name is common and it is to allow for a universal fileshare for everyone on the machine. How would I make it so that all new users are ...
2
votes
1answer
104 views

What is the source of truth for currently active tty/pts connections?

I'm looking for a simple way to determine the number of currently logged in users, using only the filesystem and basic bash functions (instead of using binaries). The uptime binary appears to be ...
2
votes
2answers
40 views

Applying and linking all settings/binaries of one user to another user in Linux

In a linux machine, we may have to compile our programs with respect to that linux machine. Now, if we already have some other users (not root. A typical user.) who have already compiled many ...
2
votes
1answer
163 views

Does each user get his/her own tty(s)?

I put a simple echo command in a CLI tty by user1 expecting it to reach user2 who is logged in a separate tty. echo "Hello, world!" >> /dev/tty5 I expected user2 to get the echo message but ...
2
votes
1answer
163 views

Home folder name with Unicode characters? [duplicate]

Possible Duplicate: Does character 'ä' in usernames cause bugs in linux systems? Is it possible to create a user with a Unicode login name (and home folder name) ? For ...
2
votes
1answer
1k views

file system uid and gid in linux

I came across a linux kernel tutorial and there they talked about 4 pairs of identifiers and one of them was file system uid and gid. Could someone explain me what it is and how it is different from ...
2
votes
2answers
503 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
1answer
322 views

Why am I not able to login directly using SSH

Suppose, the server address is abcd.com. On my local machine at my workplace, I have to login to that server, using ssh <my employeeid>@abcd.com Then, to login to user myname , I have to use ...
2
votes
1answer
226 views

dm-crypt and LUKS password rotation

How do you protect the master key, and distribute multiple passwords for admin access? Is there a 3rd party user management tool or is this native?
2
votes
1answer
785 views

Ubuntu 11.10 Server: create user, home directory, sudo privileges: command line only

I have a rackspace server and I'm having problems with configuration. I need to lock it down and throw away the key, because right now I can only login with root to do anything substantial. I also am ...
2
votes
2answers
602 views

su user fails with “grep: /var/cpanel/users/user: Permission denied”

I just did something pretty simple. Given a user user, I modified his user id, primary group's id, and added him to a new group in order to make my server use the same uid and gid as another server ...
2
votes
1answer
73 views

skill on your own session

So I kind of (read: did) run skill -STOP -u <username> on my own session... and I don't have root privileges on the machine. Short of getting the sysadmin to restore things (he's away), is ...
2
votes
2answers
143 views

How to create a new user without his own FS but with access to write to only one folder of user that creates him?

What are the command(s) to create a new user (not from su), give him the ability to write to only one folder which is some directory owned by an already existing user (the one that created him)? ...
2
votes
1answer
9 views

office 2007 under wine: available for all user accounts?

I have succesfully installed office 2007 using Wine under 1 account on my parents computer (which now runs on linux mint 13 LTS XFCE). I installed it under 1 account and normally, when you do this in ...
2
votes
1answer
136 views

How to properly setup user/groups/permissions for a web server?

I spent all day figuring this out, but without success, so hopefully I can get some help here: I have Ubuntu 13.10 VPS server with nginx, PHP 5 and MariaDB installed. I created custom system user ...