Questions tagged [useradd]

The `useradd` command is used to create new users on a system.

Filter by
Sorted by
Tagged with
3
votes
1answer
711 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
2answers
9k views

Add new user with permissions same as existing user

How to create a new user with permission exactly same as an existing user in linux.
1
vote
2answers
11k views

Add a new user steps for Oracle Linux 5

It's been over 10 years since I last used RedHat (which I believe that Oracle Linux came from). So I cannot remember the steps to create a new user, add them to the appropriate groups, set up their ...
0
votes
1answer
4k views

adding home directory after -M option

First off I'm new to Linux. I have created a new user called "ginny" with -M option. Now I'm trying to assign a home directory with usermod -d /link/to/directory ginny but it doesn't assign a home ...
3
votes
1answer
26k views

Why useradd shows Permission denied error

I am working on CentOS 5.5. When I run the useradd command as root, then its working. But when I run the same command from one of the user, then it shows -bash: /usr/sbin/useradd: Permission ...
2
votes
1answer
4k views

Solaris 10, useradd command

When I used useradd command to add a new user for my Solaris 10 System, I specify /home/user-name to be its home directory. but the command didn't run successfully, and when I put the /export/home/...
0
votes
1answer
650 views

What directory should I use for the user apache?

I have installed apache from the source with:prefix=/usr sysconfdir=/etc/httpd/ localstatedir=/var. useradd -g apache -d /usr/apache -s /sbin/nologin apache
3
votes
2answers
8k views

useradd fails on archlinux

testing out archlinux in a vm by following a tutorial on youtube.. all is fine up until the point where i reboot, boot with the hard disk and enter root at the login screen. i am trying to add a new ...
9
votes
4answers
18k views

How can I assign an initial/default password to a user in Linux?

I found a guide that explains how to set a user's password. I'm trying to automate it and send an e-mail to the user like: userid created with password XYZ. request to change the initial password. ...
1
vote
2answers
675 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 ...
2
votes
3answers
294 views

User with read access to /home

Pardon my ignorance but I can't seem to come up with a solution to this one. I'd like to create a user that has read access to every user's home catalog located in /home. Do I need acl's for this or ...
5
votes
3answers
44k 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 ...
23
votes
3answers
115k views

How do I set the password of a new user after the account has already been created?

I used the 'useradd' command to create a new account, but I did so without specifying the password. Now, when the user tries to log in, it asks him for a password. If I didn't set it up initially, ...
3
votes
3answers
373 views

When adding a user to a new group when does the user group permissions become active when its a /nologin user?

I have a service level account to run my webserver, and this user is setup with /sbin/nologin. Normally when you add a user to a group you must logout and login to use the new group permissions. ...
0
votes
1answer
329 views

Incompatible group permissions in Linux - Is it a bug? [duplicate]

Possible Duplicate: How to apply changes of newly added user groups without needing to reboot? I am on Ubuntu 11.04. I am creating another user and placing an existing user in the group of other ...
2
votes
1answer
3k views

How to add folder to existing user [proftpd]

As we know we can add folder to user using useradd user -p user_passwd -d /home/ftp/user_dir/ -s /bin/false but how to add folder to existing user, for example /home/ftp/root for root ?
4
votes
4answers
10k views

Why is the default umask value for useradd in openSUSE set to 022?

I recently built a very simple test environment with openSUSE. As I tried to configure a shared directory, without using ACLs, but with SetGID on that directory instead for some reason, I noticed ...
0
votes
3answers
32k views

No home directory, logging in with HOME=/ [closed]

Created a new user in Ubuntu 11.04 using: $ useradd -d /home/dummy -m dummy Now, after this I set its password using passwd dummy, but when I login to that user using su - dummy. I get the message: ...
14
votes
3answers
31k views

How to set umask for a system-user?

Is it possible to set the umask for a system-user (created with useradd --system username)?
-1
votes
3answers
2k views

Error when I want to create a user on FreeBSD

I'm trying to run FreeBSD (.iso) in a virtual VMWare machine. The useradd command gives me an error: # useradd pstnc useradd: Command not found Why is that? The command is correct and very simple, ...
3
votes
5answers
10k views

Create new linux account as a user without root access

Is it possible to create a non-root Linux user account without being logged in as a root user and without using sudo?
19
votes
2answers
13k 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 ...
7
votes
2answers
11k views

Why is sudo telling me my password is wrong?

I recently installed OpenBSD 4.9 in my computer, so I could learn a little bit about Unix-like operating systems. I added a new user to the system called bruno. Ok. When I use the 'sudo' command, it ...
3
votes
1answer
501 views

Accidentally included special characters in username when adding user

I was trying to add a user called joebloggs and accidentally hit other keys as I pressed enter: useradd -u 12345 joebloggs$* (on French keyboards the $ and * keys are next to Enter) doing a cat of /...
6
votes
4answers
8k views

How should I add users non-interactively?

I have a set of users I need to add to a new system as part of a BASH script that preps my server. How can I non-interactively add the user, create their home directory, set the group, and enter a ...
5
votes
1answer
2k views

Not able to set password in ArchLinux

I logged in as root and created a new account: # useradd -d /home/onie -m onie # su onie Now I try to set the password for onie myself using the passwd command, but it's asking for my current ...
10
votes
2answers
18k views

What are the allowed group names for groupadd?

I followed these instructions to build Shadow, which provides the groupadd command. I am now getting an error when trying this: $ groupadd automake1.10 groupadd: 'automake1.10' is not a valid group ...
2
votes
4answers
8k views

Add new user in solaris

I tried to add a new user in solaris 10, but got an error: $ useradd -g oinstall -G dba -d /export/home/oracle oracle UX: useradd: ERROR: Inconsistent password files. See pwconv(1M). I ran pwconv, ...