Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-25-2012, 05:10 PM   #1
LQ Newbie
Registered: Oct 2005
Distribution: RHEL 4, Fedora
Posts: 2

Rep: Reputation: 0
autofs local map files identical but not identical to automount

I may be missing something, but this is the strangest problem I have ever had.

I have a new installation of RHEL 6.3. Autofs is using local files as maps
I have 2 map files that are identical at the byte level, checked by od. One file works in autofs startup, the other fails. The map is auto.web. No NIS is used!
WCR localhost:/netdata/wcr/WCR
WCRwebprojects localhost:/netdata/wcr/WCRwebprojects

the autofs startup error is:
master_do_mount: mounting /web
automount[3471]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-web
automount[3471]: lookup_nss_read_map: reading map file /etc/auto.web
automount[3471]: lookup(file): file map /etc/auto.web missing or not readable
automount[3471]: do_read_map: lookup module file failed
automount[3471]: mount_autofs_indirect: failed to read map for /web
automount[3471]: handle_mounts: mount of /web failed!
puma automount[3471]: master_do_mount: failed to startup mount

The file can be
cp -a auto.web.bad auto.web and the problem is preserved.
cp auto.web.bad auto.web results in a good file.
Similarly mv carries the bad seed.
ls -li auto.web*
4851725 -rw-r--r--. 1 root root 101 Oct 25 14:43 auto.web
4851728 -rw-r--r--. 1 root root 101 Oct 25 14:43 auto.web.bad
4851723 -rw-r--r--. 1 root root 101 Oct 25 14:45 auto.web.good

ACLS and POSIX ACLS are identical.

the good file results in:
st_expire: state 1 path /web
automount[3751]: expire_proc: exp_proc = 139820784121600 path /web
puma automount[3751]: expire_cleanup: got thid 139820784121600 path /web stat 0
automount[3751]: expire_cleanup: sigchld: exp 139820784121600 finished, switching from 2 to 1
automount[3751]: st_ready: st_ready(): state = 2 path /web

The problem file survives a standard fsck on boot, no errors.
No hardware errors in /var/log/messages.

/misc /etc/auto.misc
/tools /etc/auto.local
/net /etc/
/home /etc/auto.home
/tools /etc/auto.local
/web /etc/auto.web --timeout=150
/netdata --timeout=150

What am I missing?
Old 10-25-2012, 08:12 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,802

Rep: Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540
I'd check

1. ownerships (user+group)
2. perms
3. acls
4. SELinux

My guess is last (4.). 'cp -a' would preserve settings, but normally a newly created file inherits SELinux settings from the parent dir.
1 members found this post helpful.
Old 10-26-2012, 10:35 AM   #3
LQ Newbie
Registered: Oct 2005
Distribution: RHEL 4, Fedora
Posts: 2

Original Poster
Rep: Reputation: 0

SELINUX was the culprit. This is a "trusted user" mobile workstation and I thought I had disabled SELINUX.
Thank you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
local and remote ip address identical using ppp sean_hurly Linux - Networking 2 09-22-2011 05:10 AM
Autofs Questions- options: map versus mount and time limit local dman777 Linux - Software 0 01-01-2011 03:22 PM
ssdeep: fuzzy hashes and "almost identical" files anomie Linux - Security 1 12-15-2010 02:50 PM
Identical disks that are not identical staphanes Linux - Hardware 8 03-11-2006 11:50 AM
copying multiple different files in different directories with identical file names nickleus Linux - Software 4 03-09-2006 01:25 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration