1849942 Members
2978 Online
104049 Solutions
New Discussion

SAM add account problem

 
SOLVED
Go to solution
j773303
Super Advisor

SAM add account problem

When using SAM to create a account. If assing home directory '/users/ftp/./common' , it shows the below message. Does anyone has any ideas? Thanks in advanced.

NOTE:
OS: 11.11
/users/ftp/common was alreday exist.
SAM patch and useradd patch are latest


SAM message:
============
Failed to add the user "a94366". An invalid argument was supplied to an option in the command "/usr/sam/lbin/useradd.sam". The output from this command was: '/users/ftp/./common' is not a valid directory.
Hero
4 REPLIES 4
RAC_1
Honored Contributor

Re: SAM add account problem

Why do not just give correct path??

/users/ftp/common
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor
Solution

Re: SAM add account problem

Is there a directory called,

/users/ftp/./common available?

ls -ld /users/ftp/./common

If it is available, May be it is used by some other user?

hth.
Easy to suggest when don't know about the problem!
Indrajit_1
Valued Contributor

Re: SAM add account problem

Hi,

if u want to create an user under the directory /users/ftp/common, the best procedure to create an user is as follows..

#cd /users/ftp/common
#mkdir ( for example user name is test)
#useradd -d /users/ftp/common\test -s /usr/bin/ksh test (user name)
#passwd test
enter the password for the user test.
#chmod -d 755 test ( according to the permission u want to set for the user)
#chown test:others test (other is the default group name)

it should work fine..

chrees
indrajit
Never Ever Give Up
j773303
Super Advisor

Re: SAM add account problem

Due to configre as annoymous ftp, and not allow user switch to another dierctory during ftp. Hence configure user home direcotry in /users/ftp/./common

Currently there're many user use the same home directory (users/ftp/./common), but it can not add user throgh SAM now, due to SAM indicated the /users/ftp/./common not invalid.

So, I set the /users/ftp/common in SAM, then modify the /etc/passwd becoming /usrs/ftp/./common

Do you have other suggestion, how to fix this problem?
Hero