03-13-2008
Edit the next files manually
On Linux, log in as root
Edit /etc/passwd to add user account information
Example username:x:1003:100:username:/home/username/bin/bash
Edit /etc/shadow to add shadow user account information. ie password
Example username:*:13869:::::: (no password here, you'll have to update it upon login)
Edit /etc/group to add group information
Example ldap:!:70:user1, user2
Edit /etc/default/useradd to check the default values for account
Add to the directory /etc/skel any more default files you wish to add
log in as that user name, update your password. Done
Moderators and experts are more than welcome to correct me here, if something is not correct.
Good luck
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello i have some probelm in the Unix Sun system ....so anyone can u help me how to sovle the problem :
1.how to add the user name and password.
2.list out the command..
Thank You (1 Reply)
Discussion started by: alan thui
1 Replies
2. UNIX for Dummies Questions & Answers
I am trying to figure out how to add a user from the web (w/ PHP or PERL): is it possible? (2 Replies)
Discussion started by: ryanroth
2 Replies
3. Solaris
hey...I am new in solaris...so how can I add user on my sun solaris system I have root user I would like one more user similar to root...as I understand root is super user...how can I do that I know that there is useradd command but can anyone give me an example...
thanks,
cheers, (3 Replies)
Discussion started by: amon
3 Replies
4. AIX
Hi,
I have created a directory and chown it to a group "test". I want to create a user with smit user and attribute to this user access only to this directory. Is this possible?
Thanks. (6 Replies)
Discussion started by: simo
6 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I got a preconfigured Debian 4 (etch) box. When I add a user, it tells me it added and I can "su" as a new user but I can't login with it through SSH, SFTP, etc.
Why?
Thanks for your help. (30 Replies)
Discussion started by: mjdousti
30 Replies
6. UNIX for Dummies Questions & Answers
Hello Experts,
Guide me how to add new users (user id , passwd) in unix/Linux with different privileges
like -->
1> It can be accessible by telnet (or where i should check/change to give different privileges like telnet or ssh2 or FTP)
2> can run only 1 command / script (2 Replies)
Discussion started by: darshak
2 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
for each user
Create a account formatted as last name first initial. Example (southerm)
Ensure no... (0 Replies)
Discussion started by: moosemd
0 Replies
8. UNIX for Dummies Questions & Answers
Dears,
I want to add a user and give him rights only for a spesific folder and take the files via ftp. The user shouldn't see the other files above or belov his folder.
lets say I have "user".
my directories:
/a
/b/d
/c
when I connect to the system I want this "user" to connect... (3 Replies)
Discussion started by: hubatuwang
3 Replies
9. Red Hat
I could not create the user name with the number infront of...
useradd 8siva
useradd: Invalid account name `8siva' (3 Replies)
Discussion started by: gsiva
3 Replies
10. Linux
I want to add a user like below in Linux. Please assist
Below is the information from /etc/passwd file
---------- Post updated at 02:04 PM ---------- Previous update was at 10:05 AM ----------
Not sure why there is X in shadow file (6 Replies)
Discussion started by: prash358
6 Replies
LEARN ABOUT POSIX
pts_adduser
PTS_ADDUSER(1) AFS Command Reference PTS_ADDUSER(1)
NAME
pts_adduser - Adds a user or machine to a Protection Database group
SYNOPSIS
pts adduser -user <user name>+ -group <group name>+
[-cell <cell name>] [-noauth] [-localauth] [-force] [-help]
pts ad -u <user name>+ -g <group name>+
[-c <cell name>] [-n] [-l] [-f] [-h]
DESCRIPTION
The pts adduser command adds each user or machine entry named by the -user argument as a member of each group named by the -group argument.
To remove members of a group, use the pts removeuser command. To list the groups to which a user or machine belongs, or the members of a
specified group, use the pts membership command.
CAUTIONS
After being added as a group member, a currently authenticated user must reauthenticate (for example, by issuing the aklog or klog.krb5
commands) to obtain permissions granted to the group on an access control list (ACL).
OPTIONS
-user <user name>+
Specifies the name of each user or machine entry to add to each group named by the -group argument. The name of a machine entry
resembles an IP address and can use the wildcard notation described on the pts createuser reference page. The user or machine entry
must already exist in the Protection Database.
-group <group name>+
Specifies the complete name (including the owner prefix if applicable) of each group to which to add members. The group entry must
already exist in the Protection Database.
-cell <cell name>
Names the cell in which to run the command. For more details, see pts(1).
-force
Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the
first error.
-help
Prints the online help for this command. All other valid options are ignored.
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or
-noauth options. For more details, see pts(1).
-noauth
Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1).
EXAMPLES
The following example adds user smith to the group system:administrators.
% pts adduser -user smith -group system:administrators
The following example adds users "jones", "terry", and pat to the smith:colleagues group.
% pts adduser -user jones terry pat -group smith:colleagues
The following example adds the machine entries in the ABC Corporation subnet to the group "bin-prot". Because of the IP address range of
the ABC Corporation subnet, the system administrator was able to group the machines into three machine entries (using the wildcard notation
discussed on the pts createuser reference page).
% pts adduser -user 138.255.0.0 192.12.105.0 192.12.106.0 -group bin-prot
PRIVILEGE REQUIRED
The required privilege depends on the setting of the fourth privacy flag in the Protection Database entry for each group named by the
-group argument (use the pts examine command to display the flags):
o If it is the hyphen, only the group's owner and members of the system:administrators group can add members.
o If it is lowercase "a", current members of the group can add new members.
o If it is uppercase "A", anyone who can access the cell's database server machines can add new members.
SEE ALSO
pts(1), pts_createuser(1), pts_examine(1), pts_membership(1), pts_removeuser(1), pts_setfields(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2014-04-08 PTS_ADDUSER(1)