AUTOFS/NIS permission issue


 
Thread Tools Search this Thread
Operating Systems HP-UX AUTOFS/NIS permission issue
# 1  
Old 06-27-2013
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 08:59 AM..
# 2  
Old 06-27-2013
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 ...
# 3  
Old 06-27-2013
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
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 ...
# 5  
Old 06-29-2013
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 08:58 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

NIS/smtp services issue on Solaris 11

Hi, Few services not starting on new build Solaris 11 non-global zone. I uninstalled zone and reinstalled and still same issue, while global zone is working fine. smpt service is going into maintenance mode and /var/svc/log/network-smtp:sendmail.log shows that it tries and then dead ... (0 Replies)
Discussion started by: solaris_1977
0 Replies

2. Red Hat

Autofs issue

Hi I'm trying to use autofs to mount a directory structure. I have a directory with sub directories in it and all of them mounted on their respective filesystems /dbname /dev/mapper/vg_dbname-Home /dbname/oracle00 /dev/mapper/vg_dbname-Data00... (3 Replies)
Discussion started by: maverick_here
3 Replies

3. UNIX for Dummies Questions & Answers

NFS issue with autofs in CentOS 6.3

I am running CentOS 6.3 as a VM on a host which has the same installation. I configured my NFS server and I am guessing it works. I say guessing because I can mount the desired folder with mount command on my client machine. So, when I run: mount -t nfs -o vers=3 vm2.domain.com:/nethome /nethit... (7 Replies)
Discussion started by: bashily
7 Replies

4. AIX

Permission Issue

Hi Team, I am using AIX 6.1 version. I have two log id IDs say (user1 and user2) Both users primary group is same. ex (group1) I have created directory called /logs/app using user1 and permissions are like below /logs ------ drwxrwxr-x /logs/app ----- drwxrwxrwx But all the process... (3 Replies)
Discussion started by: balasubramani04
3 Replies

5. SuSE

autofs: Ignore a specific NIS map

Hi! I have an issue with SuSE machines when trying to override the NIS map for home folders. My /etc/auto.master contains the following: /home yp auto.homehub +auto.master auto.homehub contains the NIS keys for all users home directories. in auto.master there also is a auto.home which... (0 Replies)
Discussion started by: Esaia
0 Replies

6. HP-UX

Permission Issue on HP-UX

Good day guys, I am very new in UNIX and am trying to install an application which uses an application ID that requires administrative privileges (Full control). In most cases, we use SUDO to grant access to this ID however the customer insisted NOT to use SUDO and Root ID is not to be used to... (1 Reply)
Discussion started by: mcdsweet98
1 Replies

7. Solaris

nfs/nis client ownership issue

Hi, I have 2 systems - solaris 10 1 is nfs/nis server while other is nis/nfs client and user directories mounted on the client. the authentication works fine. but I find out of all users, only 2 users directory is owned by some usernames who are local user on client system. I checked... (3 Replies)
Discussion started by: upengan78
3 Replies

8. Solaris

NIS password file update issue

Hi Our nis server running on Sun solaris 8 operating system. I have added a new user in the nis passwd file & when I am trying to update the file from nis server by using following command: # cd /var/yp # make updated passwd It updates the passwd file but does not come back to command... (3 Replies)
Discussion started by: dolphin
3 Replies

9. Solaris

make issue when I add some members into a NIS group on solaris 9,please help !!

Hello Sir, I want to add some members into a group on NIS domain, but when I run "/usr/ccs/bin/make group" to update the group map it was failed :-( the error message is : problem storing develop... (4 Replies)
Discussion started by: lk74612
4 Replies

10. UNIX for Dummies Questions & Answers

Solaris 9 NIS user creation issue

Helloo to all... what is the correct way to assign a password to a new NIS user on a NIS master server? When I the following: useradd -s /bin/bash -d /export/home/username -m username The user get created fine but when I try to assign a password I get: #passwd username... (0 Replies)
Discussion started by: GLJ@USC
0 Replies
Login or Register to Ask a Question