Sponsored Content
Operating Systems Solaris Create New Group/User/Password in S10 Post 302653855 by Showflash on Sunday 10th of June 2012 09:54:03 PM
Old 06-10-2012
Create New Group/User/Password in S10

I have performed the following with lower case group and usernames and the only difference is that the error message under groupadd goes away, yet I am still unable to successfully add a user WITH a home directory.

This is in Solaris 10. I am able to add a group, add a user, add the users password but I am unable to create the users home directory, and hence login using "su - Object" cannot be done. I've already proved that using a lower case group and username is the issue. The following is a script that I ran:

Code:
Script started on Sun Jun 10 19:51:23 2012

#
# /usr/sbin/groupadd -g 1001 Object
UX: groupadd: Object name should be all lower case or numeric.
#
# tail -2 /etc/group
nogroup::65534:
Object::1001:
# 
# useradd -D
group=other,1  project=default,3  basedir=/home  
skel=/etc/skel  shell=/bin/sh  inactive=0  
expire=  auths=  profiles=  roles=  limitpriv=  
defaultpriv=  lock_after_retries=  
# 
# useradd -d /home/Object -g 1001 -m -u 1001 -s /bin/sh Object
cp: /home/Object: Operation not applicable
chown: /home/Object: No such file or directory
# 
# passwd Object
New Password: 
Re-enter new Password: 
passwd: password successfully changed for Object
# 
# tail -2 /etc/passwd
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
Object:x:1001:1001::/home/Object:/bin/sh
# 
# tail -2 /etc/shadow
nobody4:*LK*:6445::::::
Object:Bns3nXhBf5ju.:15502::::::
# 
# su - Object
su: No directory!
# 
# ls -al /home
total 3
dr-xr-xr-x   1 root     root           1 Jun 10 13:31 .
drwxr-xr-x  39 root     root        1024 Jun 10 18:52 ..
# 
# pwd
/home
# 
# whoami
root
# 
# mkdir /home/Object
mkdir: Failed to make directory "/home/Object"; Operation not applicable
# 
# ls -al /home
total 3
dr-xr-xr-x   1 root     root           1 Jun 10 13:31 .
drwxr-xr-x  39 root     root        1024 Jun 10 18:52 ..
# 
# exit
#
script done on Sun Jun 10 19:56:44 2012

Thanks!

---------- Post updated at 08:26 PM ---------- Previous update was at 08:15 PM ----------

I logged out and tried to log in to the Solaris 10 graphical interface using user Object and the system will not allow the user to log in. It fails when it goes to switch to the desktop.

---------- Post updated at 08:54 PM ---------- Previous update was at 08:26 PM ----------

Well, after poking around on the Internet I figured out how to create the "home" directory for a user so that the user could log in but the directory is not located at

Code:
 /home/<username>

it is located at
Code:
/export/home/<username>

so now Solaris has me wondering what /home is for? Is it just a mount point? Must be....

Thanks in any case!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to create/restrict a user with to have no privilege from other group

Hello experts I am new to Unix. Env : HPUX I need to create a user say testuser such that it does not have access to file/directories from the other group i.e the last 3 digits . How do I do that. Reason for such a request :- I have an existing user oracle which has default umask... (3 Replies)
Discussion started by: simonsimon
3 Replies

2. Shell Programming and Scripting

Create new user account and password in shell script

I am trying to create a shell script that will: check if a specific user already exists if not, create a specific group and create the user in that group assign a password to that user, where the password is passed in as a parameter to the script The problem that I need help with is 3 on... (4 Replies)
Discussion started by: killuane
4 Replies

3. AIX

How to create new user and add group

Hello, I am new in AIX please tell how can i create user and add group in this user for example, i want to create user umair and want to add this user primanry group DBA and secondary group ORACLE,how can i do this please tell in detail Thanks, Umair (1 Reply)
Discussion started by: umair
1 Replies

4. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

5. UNIX for Dummies Questions & Answers

create new group/delete existing group

Hi, please let me know the commands to create new group/delete existing group in unix and assigning users to newly created group. Thank you in advance. (2 Replies)
Discussion started by: kancherla.sree
2 Replies

6. Shell Programming and Scripting

New To UNIX - Need Script to create report of user & group accounts

Hi, I'm new to the world of UNIX and have been asked to create a complex script (at least complex to me:confused:) for AIX UNIX to create a report of all the users on the server including server, user, UID, groups, GID, etc. Found a script using lsuser, but the output is still lacking. 2 things I... (2 Replies)
Discussion started by: panthur
2 Replies

7. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

8. Red Hat

User is a Part of a Group But Group Details Do Not Show the User

Hi, In the following output you can see the the user "richard" is a member on the team/group "developers": # id richard uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers) but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies

9. Shell Programming and Scripting

Need one line command to create and set password for new user...

Using useradd abc --password password (5 Replies)
Discussion started by: Jagruti Rml
5 Replies
groupadd(1M)						  System Administration Commands					      groupadd(1M)

NAME
groupadd - add (create) a new group definition on the system SYNOPSIS
/usr/sbin/groupadd [ -g gid [-o]] group DESCRIPTION
The groupadd command creates a new group definition on the system by adding the appropriate entry to the /etc/group file. OPTIONS
The following options are supported: -g gid Assigns the group id gid for the new group. This group id must be a non-negative decimal integer below MAXUID as defined in /usr/include/sys/param.h. The group ID defaults to the next available (unique) number above the highest number currently assigned. For example, if groups 100, 105, and 200 are assigned as groups, the next default group number will be 201. (Group IDs from 0-99 are reserved by SunOS for future applications.) -o Allows the gid to be duplicated (non-unique). OPERANDS
The following operands are supported: group A string consisting of characters from the set of lower case alphabetic characters and numeric characters. A warning message will be written if the string exceeds MAXGLEN, which is usually set at eight characters. The group field must contain at least one character; it accepts lower case or numeric characters or a combination of both, and must not contain a colon (:) or NEWLINE. EXIT STATUS
The following exit values are returned: 0 Successful completion. 2 Invalid command syntax. A usage message for the groupadd command is displayed. 3 An invalid argument was provided to an option. 4 The gid is not unique (when -o option is not used). 9 The group is not unique. 10 The /etc/group file cannot be updated. FILES
/etc/group /usr/include/userdefs.h ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
users(1B), groupdel(1M), groupmod(1M), grpck(1M), logins(1M), pwck(1M), useradd(1M), userdel(1M), usermod(1M), group(4), attributes(5) NOTES
groupadd only adds a group definition to the local system. If a network name service such as NIS or NIS+ is being used to supplement the local /etc/group file with additional entries, groupadd cannot change information supplied by the network name service. However, groupadd will verify the uniqueness of group name and group ID against the external name service. SunOS 5.10 27 Mar 1998 groupadd(1M)
All times are GMT -4. The time now is 08:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy