user directory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers user directory
# 1  
Old 06-14-2008
Computer user directory

Hi,

I'm trying to create a user using

# useradd -g oracle -d /export/home/oracle oracle

however when I check in /export/home there is nothing created.

what am I doing wrong?

Thanks!!

Smilie
# 2  
Old 06-14-2008
Check the man page of useradd for the -m option.

Regards
# 3  
Old 06-14-2008
Hammer & Screwdriver

Hi Franklin,

Using:

# useradd -g oracle -m -d /export/home/oracle oracle

worked.

question... what is the default password created? For every user created I need to use
passwd user?

thanks,

Fernanda
# 4  
Old 06-14-2008
Quote:
Originally Posted by ffpradella
Hi Franklin,

Using:

# useradd -g oracle -m -d /export/home/oracle oracle

worked.

question... what is the default password created? For every user created I need to use
passwd user?

thanks,

Fernanda
Correct, and once a user has been created you can modify any of the user settings such as the home directory setting with the usermod command.

Regards
# 5  
Old 07-01-2008
More um question regarding this topic...

Why the user folder is not created by default when creating an user in the system? What is the purpose of it? Smilie
Also, if an user does not have a personal folder, it will not able to login in the system. Am I right?
I have an user without a default directory created and I am able only from command line...

Thanks!

Last edited by ffpradella; 07-06-2008 at 01:11 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies

2. UNIX for Dummies Questions & Answers

How to remove directory of a particular user?

How to remove directory of a particular user (1 Reply)
Discussion started by: pspriyanka
1 Replies

3. AIX

How to restrict user to a particular directory?

hi, I want to restrict some user access to only 1 directory (including all sub-directories/files in it). can you please explain me, how can we do this? example; Filesystem GB blocks Used Free %Used Mounted on /dev/hd4 2.61 1.02 1.59 40% / /dev/hd2 ... (7 Replies)
Discussion started by: aaron8667
7 Replies

4. Programming

Trying to ssh as another user and cd to directory

I can ssh to another directory by doing the following: for server in server1; do ssh -t $server1 "cd /tmp; 'ls'";done However, if I try to do it as another user it fails: I have tried: for server in server1 do dir=$(su - nbadaccount -c "ssh $server `cd '/tmp/TSTCON'` " ) pwd... (3 Replies)
Discussion started by: newbie2010
3 Replies

5. UNIX for Dummies Questions & Answers

go to directory with other user

Hi , I have create new user xyz when I do su - xyz I connect from user xyz The directory is /home/xyz but when I try to go to directory /home/xyz1 It show permission denied How can go to the directory /home/xyz1 with user xyz (2 Replies)
Discussion started by: kaushik02018
2 Replies

6. Red Hat

Restrict user to a particular directory

Hi I have a Fedora10 server and i need a particular user to view files only in a particular folder. All other files in other folders having "read" permission for all shouldn't be accessible to this user. Please let me know if ther's a way. Thanks, HG (5 Replies)
Discussion started by: Hari_Ganesh
5 Replies

7. AIX

Freeze user in one directory

Guy's I have user calld appuser home directory of this user is : /app/application when this user login , user will be direct under this directory /app/application I want to keep and freeze this user in his home directory to be able to access only his home directory and denied it... (2 Replies)
Discussion started by: Mr.AIX
2 Replies

8. Red Hat

User's home directory

Hi, By default user's home directory will be /home/$user. I want to change it to /javauser/$user. How can I do it? Thanks Jeevan. (5 Replies)
Discussion started by: jredx
5 Replies

9. UNIX for Dummies Questions & Answers

How to see a user's permissions on a directory

i know about ls, I know.... but some of our shares have a long messy list of acls and it is a lot to sort through.. without a grep option, unless you have a really nice one, is there a simple way to say: show me <USER> acl permissions on <SHARE> ? (1 Reply)
Discussion started by: glev2005
1 Replies

10. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies
Login or Register to Ask a Question