- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- home directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 05:28 PM
06-07-2004 05:28 PM
home directory
Does anyone have a script which can tell whether a user's home directory is
1. mounted (source and permissions)
2. Automounted (source and permissions)
3. exist on Local system
4. does no exist
Regards
Jayesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 06:12 PM
06-07-2004 06:12 PM
Re: home directory
You can accompish this using combination of bdf and ll.
Hope this help
regards
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 06:32 PM
06-07-2004 06:32 PM
Re: home directory
What i can suggest is try writing script using command like this and may be some other's what you feel suitable. It should be simple one.
1. #mount
Tell you about filesystem mounted
2. # ps -ef | grep
Give you what process you are looking for.
That should help.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 07:00 PM
06-07-2004 07:00 PM
Re: home directory
I've no automount to test it, but wildcards for automounting homedirs won't work with this. By supplying more info on your setup, I might be able to solve that for you.
Also to check if a homedir is mounted, you might look for a .profile in the homedirs.
Good luck, hope you can build what you want on this base.
Elmar
#!/usr/bin/ksh
cat /etc/passwd | cut -d: -f 6 | while read hdir
do
currentdev=$(bdf $hdir 2>/dev/null| awk '{print $1}')
autofs=$(grep $hdir /etc/auto_master 2>/dev/null| awk '{print $NF}')
echo "$hdir\t\c"
if [ -n "$currentdev" ]
then
echo "Mounted: $currentdev"
else
echo "Unmounted"
fi
if [ -n "$autofs" ]
then
echo "Automount: $autofs"
else
echo "No automount"
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 02:17 AM
06-08-2004 02:17 AM
Re: home directory
2. cat /etc/fstab | grep
3,4. showmount -a (if the directory shows here, it's nfs, i.e. not on local system)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 03:21 AM
06-08-2004 03:21 AM
Re: home directory
temp:*:4000:20:TEMP ID:/home/temp:/usr/bin/sh
Login directory not found