home directory problem


 
Thread Tools Search this Thread
Operating Systems Solaris home directory problem
# 1  
Old 09-15-2003
home directory problem

I have solaris 9 installed across 2 disks.

disk 1
/ s0
swap s1
/usr s6
/var s3
/home s7

disk2

/swapfile (spare space for use with swap) s1
/opt s5
/export/home s7

When I create a new user using solaris Management console, it takes the settings /export/home/<username> as the home directory but after logging in as user, home directory appears to be /home/<username>.

When I show hidden files, both directories (/home/<username> and /export/home/<username>) both have the same files(.cshrc, .login, etc).

How do I set this so that /export/home/<username> is used exclusively and not /home/<username?

Do I have to change the mount order in vstab? Below is a listing of my vstab file. (/home -c0t0d0s7) not listed in vfstab.

#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s4 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no
-
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /usr ufs 1 no
-
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /var ufs 1 no
-
/dev/dsk/c0t1d0s7 /dev/rdsk/c0t1d0s7 /export/home ufs 2
yes -
/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5 /opt ufs 2 yes
-
/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1 /usr/openwin ufs 2
yes -
swap - /tmp tmpfs - yes -

_________________
ThanksSmilie

********* I notice that when I deselect "automatically mount home directory" in the user template the issue goes away. I guess this may be the fix but I don't understand why? If I put the home directory as /export/home/<username>, why doesn't it use thta as home?

Last edited by finster; 09-15-2003 at 11:10 PM..
# 2  
Old 09-16-2003
............

look into your /etc/passwd file, there your home directories are configured:

pressy:x:1001:10::/export/home/pressy:/usr/bin/bash

greetings Preßy
Login or Register to Ask a Question

Previous Thread | Next Thread

9 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. 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

3. Programming

Getting Home Directory

Hi I need to get the home directory of current user who is running the program, also i need to store the value in a particular variable and pass to the function. thanks in advance (4 Replies)
Discussion started by: cutechaps
4 Replies

4. Shell Programming and Scripting

problem with changing default home directory

Hi I want to change the default home directory of a user by modifying the /etc/passwd. I have a user named John cat /etc/passwd | grep John john:x:503:506::/home/john/:/bin Here is my script: echo "Enter username"; read username; echo "Enter new home directory"; read new_path; ... (3 Replies)
Discussion started by: tjay83
3 Replies

5. UNIX for Advanced & Expert Users

Problem: Automounting Home directory for nis & nfs configuration doesn't work

Hi all, First of all, i am so sorry about my bad level in English writing. I have some problem in linux and i hope the experts of this forum to help me if they have enough time to reply to me. I have a scenario of configuring NIS and NFS in Redhat Linux environment such that user can login... (0 Replies)
Discussion started by: pioneer
0 Replies

6. UNIX for Dummies Questions & Answers

home directory

Hi what is the difference between the directory named /home and the user's home directory? can anyone plz reply? really confuse about it!!!!!!!! thank you (1 Reply)
Discussion started by: nokia3100
1 Replies

7. UNIX for Dummies Questions & Answers

user home directory problem

The home directory for me on my system is on /home/kwon. It was created using "useradd kwon" When i go to change the home directory for a user doing a usermod -d /home/test when they log on it gives them messages saying to generate new ssh keys, and it does. It gives me a thing that says... (1 Reply)
Discussion started by: BangYourWallnut
1 Replies

8. UNIX for Dummies Questions & Answers

cd into home directory ~

I'm trying to cd into a home directory with cd ~username_here and I'm getting the following error: ~username_here: does not exist The directory exists and I can directly go to it via cd /export/home/username_here without any problems. Any suggestions? (4 Replies)
Discussion started by: here2learn
4 Replies

9. UNIX for Dummies Questions & Answers

c++ home directory??

when i compile *.cpp files the compiler didn't find the non standart includes.If i have to put the full path of the includet files where shall i begin from root dirctory or i heve to put includet files in cpp home directory??? can i compile java files in unix(linux mandrake 7) if yes haw... (3 Replies)
Discussion started by: user666
3 Replies
Login or Register to Ask a Question