AUTOFS/NIS permission issue | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

AUTOFS/NIS permission issue

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-27-2013
mrmurdock mrmurdock is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 26 June 2014, 9:02 PM EDT
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
AUTOFS/NIS permission issue

This is unfortunately for a Tru64 5.1 PK4 system.

I have Autofs running and it seems to read and mount the NIS maps, however, on a couple of maps, eventhough is says (rw), the user home directory of /home is (ro). See cut and paste Below. This prevents the automounting of Users home directories. the auto.vol nis maps work just fine. The other file system is auto.sysadmin that has same issue. Works fine with "AUTOMOUNT". There is no local /etc/auto.master (auto_master), or /etc/auto.home (auto_home). These do not help the situation.
The real problem is with automount, the home directories get mounted under /tmp_mnt/home/<user>. So users enviroment variables have to be changed throughout their developement environment on this server. AutoFS is suppose to remedy this.

The NIS server is a Solaris 10. The Nfs Server is also a Solaris 10 box. I have no issues with HP/UX boxes or Solaris boxes using same NIS/NFS servers.

Code:
 
# mount -e
root_domain#root on / type advfs (rw)
/proc on /proc type procfs (rw)
usr_domain#usr on /usr type advfs (rw)
usr_domain#var on /var type advfs (rw)
home_domain#home on /bulldogs type advfs (rw)
auto.sysadmin on /sysadmin type autofs (rw, nogrpid)
auto.home on /home type autofs (rw, nogrpid)
auto.vol on /vol type autofs (rw, nogrpid)
-hosts on /net type autofs (rw, nogrpid)

# mkdir /home/old
mkdir: cannot write directory /home
/home: Permission denied


Last edited by vbe; 06-30-2013 at 07:59 AM..
Sponsored Links
    #2  
Old 06-27-2013
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 66 Times in 59 Posts
is it not that user home directories are supposed to automount into /home so home directory for user abc would actually be /home/abc? if yes, then your error is most likely due to /home being reserved for automounting a user directory and not necessarily an actual issue ...
Sponsored Links
    #3  
Old 06-27-2013
mrmurdock mrmurdock is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 26 June 2014, 9:02 PM EDT
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
You are correct for the rest of the World, but for Tru64-5.1 (until 5.1A release of Tru64) and Digital Unix, they for some reason used /tmp_mnt as the prefix directory. Automount Does create a link into /home/<user> but the way the developers have things setup, their apps always reads /tmp_mnt/home/<user>.
    #4  
Old 06-27-2013
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 66 Times in 59 Posts
i am not saying that there is an issue with where the home directories are mounted ...

i am saying that the automounter or another process has locked /home so you cannot manually create any directory in it ...

Code:
# mkdir /home/old
mkdir: cannot write directory /home
/home: Permission denied

run " lsof +d /home " to see if there are processes locking it up ... if you do not have lsof installed, download from here or there ...
Sponsored Links
    #5  
Old 06-29-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 29 September 2014, 1:02 PM EDT
Location: Simplicity
Posts: 1,924
Thanks: 123
Thanked 561 Times in 509 Posts

Code:
mkdir /home/newdir

does not work if /home is controlled by automount|autofs.

Code:
df /home

should indicate automount|autofs.

Code:
mkdir /home/dir/newdir

should work (file permissions apply).

Code:
df /home/dir

can give two results dependent on if currently mounted or not.

Code:
df /home/dir/.

fosters a mount then gives a consistent result.

Code:
ls -l /home

Shows the currently mounted directories.
Additionally it might show not mounted directories (taken from the auto.home map) with arbitrary file owner|permissions; this is a browse feature.

Last edited by vbe; 06-30-2013 at 07:58 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NFS issue with autofs in CentOS 6.3 bashily UNIX for Dummies Questions & Answers 7 02-27-2013 04:49 AM
autofs: Ignore a specific NIS map Esaia SuSE 0 10-04-2011 09:48 AM
nfs/nis client ownership issue upengan78 Solaris 3 01-22-2009 08:37 AM
passwd -r nis <username> on nis client-Permission Denied upengan78 Solaris 0 08-25-2008 12:37 PM
NIS password file update issue dolphin Solaris 3 03-24-2008 01:11 PM



All times are GMT -4. The time now is 07:49 AM.