lost home directory


 
Thread Tools Search this Thread
Operating Systems Solaris lost home directory
# 1  
Old 12-29-2008
lost home directory

The home directory for a very important user ie prdadm in my system is missing. the files were not deleted but seem to disapper after I had configured /etc/hosts.equiv file. Though I undid the changes later on nothing seems to be the same

. As a result I can't log in as the user prdadm. I get the error message below

root@PRD#su - prdadm
su: No directory!
root@PRD#


I just did a check on autofs config files in my server .directory /etc/auto_direct is missing. below is the output of /etc/auto_home & /etc/auto_master

root@PRD#
[B]

root@PRD#cat /etc/auto_home

# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)auto_home 1.6 03/04/28 SMI"
#
# Home directory map for automounter
#
+auto_home
root@PRD#
root@PRD#


root@PRD#cat /etc/auto_master

# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)auto_master 1.8 03/04/28 SMI"
#
# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
root@PRD#


the entry of the user in /etc/passwd
prdadm:x:105:101:SAP System Administrator:/home/prdadm:/bin/csh



Is there a way I can recover the home directory files for user prdadm ?

kindly assist
# 2  
Old 12-29-2008
Are you using NIS/LDAP or similar name services ie. what do you have in /etc/nsswitch.conf ?

Also do you have any idea where the backing filesystem is for the home directories, and is it local or remote?
# 3  
Old 12-29-2008
I'd also ask what the following command tells you?
Code:
df -k /home

# 4  
Old 12-30-2008
Thanks for your response guys


The response for df -k /home is below
Quote:
root@PRD#
root@PRD#df -k /home
Filesystem kbytes used avail capacity Mounted on
auto_home 0 0 0 0% /home
root@PRD#

however I realize when the home directories were visible command df -k /home would show it mounted on device /dev/md/dsk/d30 which has the root filesystem .

I believe the person who created the users picked /home as the home directory for the users he created




NIS/LDAP or similar name services are not in use

in /etc/nsswitch.conf
automount: files

I'm not sure where the backing filesystem for the home directories is local or remote but I have a backup of the root filesystem
# 5  
Old 12-30-2008
The problem with my setup is that the directory /export/home is not there. Whoever did the Solaris instalation ommited that option.

I believe that is why the users created in the system have their home directories in /home
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. Shell Programming and Scripting

home directory

hello i want shell script. as root , i want to untar specific.tar.gz to all home user directory and after untar , there is 1.txt 2.txt ~~ 26.txt in/public_html/test1/ i want randomly selected 6 text files in 1.txt 2.txt ~26.txt to be renamed newword1.word , newword2.word , ~~... (8 Replies)
Discussion started by: topic32428285
8 Replies

4. UNIX for Dummies Questions & Answers

lost /home/directory for users

I'm using HPUX 11i. The other day a user logon to the workstation and was not able to find the /home/directory (tom is the directory) I login myself and it is the same thing. The home directory is on the server, so I was thinking of using sam to map it again. does anyone know how to do it... (5 Replies)
Discussion started by: blizzgamer
5 Replies

5. Solaris

Deletion of Data from Lost+Found Directory

Hie I am running a sun solaris server of about 300 gigabytes disk capacity. The problem is that the machine has been having problems over the past year and at times the machine would just freeze or hang and had to be re-booted. Consequently there are too many entries in the lost+found... (1 Reply)
Discussion started by: Ranganai
1 Replies

6. Solaris

Deleted Lost+Found directory

If you delete your lost & found directory, how do you get it back, just do a mkdir? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

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

8. UNIX for Dummies Questions & Answers

lost+found directory

what is the directory "lost+found" and how is it used? (2 Replies)
Discussion started by: Ben070371
2 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