Sponsored Content
Operating Systems Solaris How to unmount user home directories ?? Post 302768952 by achenle on Sunday 10th of February 2013 08:33:31 PM
Old 02-10-2013
Try this before unmounting:

Code:
fuser -k -c /exports

That will kill any and all processes that have a file open or a current working directory in that file system.

Be careful you don't kill your own processes.

Also, make sure it's not NFS shared:

Code:
unshare /exports

This User Gave Thanks to achenle For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Delete old home directories

I have a script that deletes obselete users from /etc/passwd then moves their home directories to another location. After 30 days, I need to delete the home directories that were moved to the new location. I would appreciate any ideas on how to delete the directories after the 30 days? (2 Replies)
Discussion started by: munch
2 Replies

2. Solaris

How to backup /home directories?

I know that how to backup the home directories in sun sparc server. Firstly, umount the filesystem, Secondly, fsck the filesystem, Thirdly, ufsdump the filesystem. Anybody know how to type the full command line backup the /home directory? (1 Reply)
Discussion started by: kingsan
1 Replies

3. Shell Programming and Scripting

Batch delete specific folder from user home directories

Hi! Need your help. How can I delete the cache folder of multiple user home directories via automatically executed shell script on a Mac OS X Server? Example: The userdata are stored on a Xsan Volume like this: /Volumes/Xsan/userdata/mike /Volumes/Xsan/userdata/peter... (2 Replies)
Discussion started by: nipodrom
2 Replies

4. UNIX for Dummies Questions & Answers

UNIX home directories

Hi All, Could someone help, am a complete beginner when it comes to UNIX. However I have been tasked with investigating automatic creation of UK unix home directories. Is someone able to help? Thanks in advance! (7 Replies)
Discussion started by: zainster
7 Replies

5. Shell Programming and Scripting

How to verify all user home directories are writable only by their owner

Hi, I'm currently working on my school assignment on how to verify that all user home directories are writable only by their owner on Solaris with VMware. But I'm not sure why my codes take a very long time to display the results. My friend says it's the `su - $i -c "ls -ld" 2> /dev/null | grep... (1 Reply)
Discussion started by: NuuBe
1 Replies

6. Homework & Coursework Questions

How to verify all user home directories are writable only by their owner

1. The problem statement, all variables and given/known data: Need to verify that all user home directories are writable only by their owner on Solaris. The script posted below is workable but it is taking a long time to display the results, and I don't seem to be able to fix it or find any... (6 Replies)
Discussion started by: NuuBe
6 Replies

7. Solaris

how to change /export/home/user dir to /home /user in solaris

Hi all i am using solaris 10, i am creating user with useradd -d/home/user -m -s /bin/sh user user is created with in the following path /export/home/user (auto mount) i need the user to be created like this (/home as default home directory ) useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

8. Solaris

Giving read write permission to user for specific directories and sub directories.

I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. This is for Solaris. Please help. (1 Reply)
Discussion started by: blinkingdan
1 Replies

9. UNIX for Beginners Questions & Answers

[Tip] Housekeeping Tasks Made Easy - User Home directories and Leftover Files

We have regularly questions about how to create users and user accounts. But regularly user accounts need to be deleted too. It is quite easy to delete the user account itself but usually the HOME directory of the user remains. It is good style to remove these directories but simply deleting... (3 Replies)
Discussion started by: bakunin
3 Replies
mountd(8nfs)															      mountd(8nfs)

Name
       mountd - NFS mount request daemon

Syntax
       /etc/mountd [-i] [-d] [-s]

Description
       The daemon must be run on NFS servers to process NFS mount protocol requests.  It reads the file to determine which file systems and direc-
       tories are available to which machines and users, and makes this information available to the operating system.	The machine  names  listed
       in  the	file may optionally contain the local BIND domain name.  For more information on BIND, see the Guide to the BIND/Hesiod Service To
       see which clients have file systems or directories mounted, use the command.

Options
       -d If you are running the BIND/Hesiod service, after checking the Internet address, will verify that the host requesting a mount or unmount
	  is in the server's domain.

       -i Turns  on  verification  of the Internet address of the client against the server's database for mounts and unmounts.  The default is no
	  address verification.

       -s If you are running the BIND/Hesiod service, after checking the Internet address, will verify that the host requesting a mount or unmount
	  is in the server's subdomain.

See Also
       exports(5nfs), mount(8nfs), nfsd(8nfs), showmount(8nfs)
       Guide to the BIND/Hesiod Service

																      mountd(8nfs)
All times are GMT -4. The time now is 09:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy