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

learn more… | top users | synonyms

2
votes
1answer
451 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 ...
3
votes
2answers
4k views

new user can't login in Mint

I have created a new user in Mint 12, with this commands: sudo useradd irene sudo passwd irene //here I entered the password But if I try to login with this user the screen goes black for a ...
4
votes
1answer
159 views

Easiest way to manage users for two machines

I'm administrating two ubuntu desktops and one debian server. There are abount ~20 active users on the desktops. A few (5-10) user accounts are added each year and about the same amount become ...
4
votes
2answers
1k views

Why don't /etc/group and /etc/password match?

OK this is a basic question showing my ignorance of sysadmin matters... Looking at the UNIX system I work on, my /etc/passwd entry says my_name:x:uid:gid:comments:home directory:login shell Then ...
5
votes
3answers
6k views

Disable user shell for security reasons

We have several user accounts that we create for automated tasks that require fine-grained permissions, such as file transfer across systems, monitoring, etc. How do we lock down these user accounts ...
5
votes
2answers
1k views

Bash is not fully functional for a new user

I just created a new user on my system using useradd -d /home/users/john -m john (Using Ubuntu 11.04). This worked fine, but when I changed to john, my bash is not fully functional. That is, it has no ...
2
votes
2answers
3k views

How to tell who is connected via vnc to my machine?

How do I check how many vnc connections or different users are currently connected to my machine? Only through wireshark? And how do I kill any other users connected through vnc?
10
votes
1answer
433 views

Why are user IDs recycled?

The other day, I deleted a user from one of our servers. That user had the ID 1002. Today, I've added a new user to the system. To my surprise, he got the user ID 1002. Because I neglected to delete ...
0
votes
1answer
1k views

Difference between passwd and passwd- file [duplicate]

Possible Duplicate: Who creates /etc/{group,gshadow,passwd,shadow}-? I have a strange passwd- file in /etc, notice the trailing dash: root@ubuntu:~# ls /etc/passw* /etc/passwd ...
5
votes
2answers
525 views

How to disable login for an user?

My Linux has many not-human users like cron, ntp, daemon, http, etc. I want to disable anybody to login as any of this users. Real people on my machine are root and me, so only root and me should be ...
5
votes
1answer
472 views

Run script when specific users logout

I need to run my application in screen when specific users are logged out and kill the screen when someone from my user list logged in. So I am thinking about bash script, which will be called ...
2
votes
1answer
67 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 ...
5
votes
2answers
3k views

Running a bash script as a less privileged user with upstart

This is the script, /home/jack/myscript.sh, which I want to run: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26/ /home/jack/myapp/apache-tomcat-6.0.32/bin/./catalina.sh run The upstart file, ...
1
vote
1answer
226 views

For an init.d startup script, what is the ideal user to use as the owner of that process

Everyone says that running processes as root is bad, since it defeats the security and privileges model. But what user should be used to run a startup process? Is it really necessary to create a new ...
4
votes
1answer
325 views

Force pubkey-auth user to set password at first login

When I create a new user account I ask users to send me a public key, and want to force users to set the password the first time they log in with keypair authentication. If I create an account with an ...
1
vote
3answers
180 views

User's name appears as “bash-3.0” on SSH shell

I am working on a Redhat server and one of the users' names appears as "bash-3.0" on the "SSH Secure Shell Client." His name is appearing correct under /etc/passwd. How could this happen? How can I ...
7
votes
3answers
678 views

Does character 'ä' in usernames cause bugs in linux systems?

I want to use my first name as an username but it contains character 'ä'. I found this thread. Now I understand, why some some characters are disabled, but what about 'ä'? Can this character cause ...
3
votes
1answer
2k views

SSH not landing in the home directory

I have recently installed Raspbian into a Raspberry Pi. As part of the installation process I changed the user name and group from the default (pi) to my own (let's call it user) using usermod and ...
2
votes
1answer
189 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 ...
1
vote
2answers
143 views

Login to super user for running script

I have sample.sh script in /u01/dump location. I'm running it from root. My requirement is while running the sample.sh script it has to be login as oracle1 user using SU (super user) and display all ...
0
votes
2answers
709 views

How to suppress su authentication failure warning?

I created an account "diag" and set it as expired (usermod --expiredate 1). Then I have a script which I want to run to log into it, so in the script I use the following command: su -s /bin/bash - ...
6
votes
1answer
464 views

/etc/passwd sql with bash access

I just got a CentOS VPS and was reviewing the passwd file and saw this: mysql:x:498:499:MySQL server:/var/lib/mysql:/bin/bash Is bash necessary for mysql?
3
votes
1answer
244 views

Can linux use a mix of SHA-1 and CRYPT passwords?

We have an automated sync-routine that uses useradd to create new users on a Ubuntu 10.04 machine. The application launching the routine provided both username and CRYPT-encrypted password. However, ...
3
votes
3answers
10k views

How to create an unprivileged user in CentOS?

I want to create an unprivileged user to run my RhodeCode server and Celery daemon on a CentOS instance. I think the accepted definition of this is no home directory, login disabled, and no shell ...
4
votes
2answers
2k views

/etc/shadow and /etc/passwd format compatibility

Are formats of files /etc/shadow and /etc/passwd same on all unix and unix-like systems same or are there significant differences? I mean syntax of files, not file location or name
1
vote
1answer
225 views

Copying a directory to multiple users home dir and changing user/group ownership

On my Ubuntu server there are about 150 shell accounts. All usernames begin with the prefix u12.. I have root access and I am trying to copy a directory named "somefiles" to all the home directories. ...
6
votes
1answer
5k views

Group within group file permissions

I tried finding this on here, but couldn't so sorry if it's a duplicate. Say I have 2 groups and a user: group1, group2, user1 with the following structure: group1 is a member of group 2, user1 is a ...
1
vote
2answers
413 views

Can't SSH/FTP into new user account in Ubuntu?

Created new user from shell script using following command: sudo useradd $1 -p $2 --home /var/www/$1 I'm not able to login to FTP or SSH as that user, do i need to add the user to some group for ...
13
votes
2answers
6k views

How can I determine if someone's SSH key contains an empty passphrase?

Some of my Linux & FreeBSD systems have dozens of users. Staff will use these "ssh gateway" nodes to SSH into other internal servers. We're concerned that some of these people use an unencrypted ...
3
votes
2answers
716 views

Start Vim as my user with root privileges

I have my custom Vim files in ~/.vim and settings in ~/.vimrc. However, sometimes I have to edit some files in /etc and such. If I start Vim like this: $ sudo vim /etc/rc.conf I lose my config ...
2
votes
4answers
2k 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
3
votes
2answers
2k views

'mysql' user and group creation, ownership settings

I know what the linux command chown does, I used it to change the ownership or group of a file. If there is a MySQL installation on a Ubuntu machine, I saw some people doing the following thing: ...
12
votes
3answers
1k views

Can I limit a user (and their apps) to one network interface?

As the title really. I've actually got two scenarios to apply this: Multiseat Desktop: two network connections both with internet gateways and two accounts doing bandwidth-intensive tasks on each. I ...
5
votes
2answers
4k views

How do I add a guest account to Linux Mint 13?

Is there a way to add a guest login account on welcome screen of Linux Mint 13 MATE-32bits, similar to the one present in Ubuntu 12.04?
2
votes
1answer
2k 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 ...
1
vote
1answer
557 views

Correct owner, group and permissions when mounting an image file

Suppose I have an image home.img of a home partition of another linux machine (B). On that machine there is a users userB and there is a special group, groupB. Consider for example a file fileB in the ...
2
votes
1answer
256 views

What user installs a .deb package?

I am experiencing a behavior in the installation of a .deb package that I don't really understand. I have a set of "things" in my computer that I deploy to remote computers using a .deb package. I ...
2
votes
2answers
122 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: ...
3
votes
0answers
186 views

Will a account get locked while logging in FTP mode to a remote server whose password has already expired in UNIX

I have a FTP user id to a remote server, the password for which has expired.The account is getting locked if connection is being made in FTP mode to the server with the old(expired) password. Is ...
9
votes
2answers
1k views

Why is /etc/passwd open to public for reading?

Is there any reason that /etc/passwd should be world-wide readable ? It's not like password hashes that shouldn't be exposed, I just want to know why.
4
votes
1answer
138 views

In crontab is it possible to specify a user from a variable?

I am trying to have the following cron executed with a certain user. U=`/usr/bin/w | grep -w :0 | awk '{ print $1 }'` */1 * * * * $U /opt/script.sh It seems the deamon doesn't know how to interpret ...
4
votes
2answers
913 views

How can I make all my processes start with niceness 5

I know that niceness values are inherited from the niceness value of the parent process, but can I globally change the default niceness value for a particular user (myself). In this case I have a ...
5
votes
1answer
428 views

Is it safe to use /bin/cat as shell for a restricted user?

I need to remontely log on to few peoples machines to do maintanance tasks, but sometimes the machines can be behind firewalls or NAT's. The way I have been doing it is to give the user advice on how ...
10
votes
1answer
6k views

Meaning of root:wheel

What does root:wheel mean in the following? chown root:wheel myfile
12
votes
3answers
4k views

Creating a user who cannot get an interactive shell

What are interactive and non-interactive shell? Questions: Create a user john who should not get an interactive shell. How can we do this?
4
votes
1answer
6k views

How to create a user with given password on SuSE from command line?

I need to create bunch of new users with given password. What I want is a script that I would pass the user name of new user and it will create/add the user and set its password. (the password is the ...
9
votes
2answers
4k views

How do I leave a message for another (local) user?

I know you can use write to send a message to a currently logged in user, but how do you leave a message for a user who is not logged in? The solution I have seen is modify the motd, but that will be ...
2
votes
5answers
8k views

What is the command for listing all users who are members of the admin group?

I am looking for the name of the superusers list on Fedora. (On Ubuntu is seems to be "sudo".) I want to add one of the users to the superusers list. The groups command only lists the groups of the ...
0
votes
1answer
187 views

what does 'old' mean in the output of `who -u`?

Title says it all. In the listings of who -u, some of the records show the string "old" in the idle time column. I know that "." means the session is not idle. What's the meaning of "old"? The ...
7
votes
3answers
646 views

Prevent a unix account from being able to SSH [duplicate]

Possible Duplicate: Disable direct login for normal users (like oracle) in linux but allow scp and sftp? I want to prevent a unix account from being able to be SSH'ed with, but it should ...