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

learn more… | top users | synonyms

3
votes
1answer
4k views

smbpasswd failed for new Samba install on fresh Ubuntu 11.04

I've installed Samba on a fresh Ubuntu install. I run the command sudo smbpasswd -a someuser New SMB password: Retype new SMB password: Failed to add entry for user someuser. I've read that you ...
3
votes
2answers
791 views

In new users's home directory create sub-directory with a specific group and permissions

Linux will copy the the contents of /etc/skel when a new user is created. I want to have a sub-directory in each user's home directory, MyStevedore. I want this directory to have the owner be the new ...
3
votes
1answer
688 views

Set visible directories for SFTP access?

I am setting up SFTP access to one of my machines running Linux with the Dropbear SSH server. When I SFTP onto the machine remotely, I can see the entire filesystem on it, even if I might not have ...
3
votes
2answers
69 views

Is it possible to change passwords temporarily?

I have a Linux system with several users. I don't know their passwords, nor do I want to know them. I have to do a batch copy of some of their directories over SSH, with their account and password. ...
3
votes
2answers
980 views

How can I create a new user but with a home directory that already exists?

Let's say I have a user called panos and he has his home directory located at /home/panos. Then, I create a another user called Tom: adduser Tom It creates a user Tom who has home dir: /home/Tom ...
3
votes
3answers
1k views

Allow other user to copy the files from my folder?

I am working with Ubuntu and I have a jar file in this folder /export/home/david And I am logged in machineB as david user. Some other user is also logged in that same machine. And I want other user ...
3
votes
1answer
383 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 ...
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. ...
3
votes
2answers
150 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 ...
3
votes
1answer
253 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
2answers
832 views

A question about permissions of hierarchical directories

I have some directories, with following permissions: drwxr-xr-x 18 user1 root 4096 Oct 27 11:25 /home/test1/test2 drwxr-xr-x 24 user1 root 4096 Oct 21 08:38 /home/test1 drwxr-xr-x 492 root root 12288 ...
3
votes
2answers
7k views

Will a users password expire if I set the “maxexpired” to “-1”? [maxage not 0] - AIX

So under AIX 6, according to "lsuser" the user has the following settings: maxexpired=-1 maxage=2 So this means that 2 weeks after the last password update of the user the password will expire, but ...
3
votes
1answer
942 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 ...
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
213 views

What is the proper solution to a web server trying to write to a directory?

So, I have a box with a "deploy" user. This deploy user owns a code repository and wordpress is running on this box... When wordpress attempts to do something like upload a plugin, it is using the ...
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: ...
3
votes
2answers
1k views

How to trace a process to original user?

Say, on a Solaris server, user1 logs in, switches to someother user, say sruser, using su - and then starts a process of id X. And then another user user2 logs in, switches to sruser the same way and ...
3
votes
1answer
78 views

Ubuntu user disappeared from machine

Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user (from his sudo/admin user) and ...
3
votes
0answers
34 views

Workstation-like environment across Debian clients

At our university we have a workstation-like system. It's windows XP (or Win-7 on some machines) and you can sit to any computer and log in with your credentials. It seems to be pulling some of your ...
3
votes
0answers
685 views

recommended procedure to create a user/group during RPM install

after trying hard to search for RPM best practices guides and finding virtually none, to my surprise, I resort to the community - I need to ensure that some users and groups exist after the ...
3
votes
3answers
3k 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 ...
3
votes
0answers
217 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 ...
3
votes
1answer
895 views

How do I add a local user to a box that uses LDAP authenticaiton?

I'm working with a box that uses LDAP for user authentication. However, I need to add a local user to run some services and I don't want non-person users junking up the LDAP directory. Does anyone ...
2
votes
3answers
646 views

What mechanism prevents any user from accessing any other user's files via root?

On a multi-user system, what protects against any user accessing any other users files via root? As context, the question is based on my understanding as follows: There are two commands related to ...
2
votes
3answers
148 views

How to determine users connected ssh

I want to see how many users are connected to a PC to see who is gonna see the message when I do for example: echo hello users! | wall
2
votes
6answers
1k views

sort ls output by users

On Linux, is there a way to sort ls output by users? What I try to achieve is something like this: user_a   file1 user_a   file2 user_b   another_file user_c   this_file user_c ...
2
votes
2answers
287 views

using chown in linux

I want to assign www-data user full rights in folder /var/www/ and all of the files inside this folder. I have tried chown www-data /var/www/
2
votes
2answers
2k views

How to get hashed password in /etc/shadow using getpwnam()?

Apparently there is a function (getpwnam) that given a username, will return the appropriate entry in /etc/passwd with the other details for that user (shell, uid, gid, etc.). However, I have no idea ...
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 ...
2
votes
5answers
12k 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 ...
2
votes
1answer
406 views

How to create a sudo user that cannot delete me?

I'm sudoer on a remote linux machine and would like to create another user with the maximum privileges, except the privilege of managing my account. I'm assuming a sudoer can delete or change the ...
2
votes
2answers
1k views

Directory/files owned by a non-existent user

A user has created a directory with files, but the user does not exist in /etc/passwd or /etc/group. The system is a Fedora server with an FTP server and proxy which redirects to a CentOS server with ...
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 ...
2
votes
4answers
689 views

different shell for root and non-root user

When I ssh as root, my shell is bash, but when it's a non-root user it is sh. How can I make them both to use bash? This actually goes against the logic in this question: Why root's default shell is ...
2
votes
3answers
547 views

su and aliases confusion

I create an alias as my current user in the bash shell, which I can see using the alias command. When I switch user without the -, i.e. su testuser, the alias is not carried into the new user's ...
2
votes
1answer
19k views

How can I create an SFTP user in CentOS?

I'd like to give temporary SFTP access to a support guy. How do I create an SFTP user? And how can I delete it once the job is done? Also, how do I specify a home directory for them? Can I prevent ...
2
votes
3answers
2k views

What command should I run after making changes to /etc/passwd file

I have made some changes to /etc/passwd file ,now I wanted to see if the effect of changes taken place or not .What command should I run for that. For example after making change to ...
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?
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
2
votes
1answer
294 views

Verify that /etc/passwd has correct number of fields on each line?

I'm looking for an easy, portable way to validate the number of fields in /etc/passwd, /etc/shadow, /etc/group and /etc/master.passwd. This would run on FreeBSD, Linux and other Un*xes. pwck does ...
2
votes
2answers
1k views

SFTP with Mysql user pass instead of PAM

Is there a way for people to log onto a debian server via sftp using just mysql database table as authentaction. IE not adding a user to the system? I know it can be done over ftp and TLS but i ...
2
votes
4answers
3k views

NIS: How to allow access to both local and remote users' home directories?

We have a NIS server with shared users' home directories in '/home'. We're used to mounting the server's '/home' using '/home' as the mount point on each NIS client. However, if we do this with a ...
2
votes
1answer
58 views

Does root not require a password to log in as a user?

Does root not require a password to log in as a user even though a password has been set for that user? When I am logged in as "root", su user logs me in as "user". There is no prompt for a password. ...
2
votes
2answers
546 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
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 ...
2
votes
1answer
320 views

Should I use useradd or adduser?

I am trying to add a new user to the system. I am confused though which command to run: useradd or adduser?
2
votes
1answer
118 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
125 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
803 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
3answers
120 views

Command for finding users who are not logged in

Is there any command that can find the number of users that are not logged into the system ? I am trying to write a shell script that counts the number of users who are logged in and number of users ...