Solaris 10 autofs directory permissions - Solution



This error is related to
http://sunsolve.sun.com/search/document.do?assetkey=1-62-212703-1 and
the fact that my map file has 755 permissions not 644.

If the execute permission is set, it becomes an executable map which is
a shell script that outputs the required automount commands, but can
include extra logic to determine which mounts should be made. From
automount(1M):

Local maps that have the execute bit set in their file per-
missions will be executed by the automounter and provided
with a key to be looked up as an argument. The executable
map is expected to return the content of an automounter map
entry on its stdout or no output if the entry cannot be
determined. A direct map cannot be made executable.

I simply chmod'd my /etc/auto_direct from 755 to 644 and the problem was
resolved.

Regards

Kev Smith

-----Original Message-----
From: Smith, Kev
Sent: 22 July 2008 14:39
To: Sun Managers
Subject: Solaris 10 autofs directory permissions

OS 5.10 Generic_127127-11

Simple client auto_master / auto_direct setup [OS 5.10
Generic_127127-11], see files below

/etc # cat auto_master
/- /etc/auto_direct

/etc # cat /etc/auto_direct
/sysadmin/audit/output -rw londeploy-p1:/sysadmin/audit/output
/sysadmin/audit/bin londeploy-p1:/sysadmin/audit/bin

Directories shared [on 5.9 Generic_117171-15] as:

# share -F nfs -o rw,anon=0 -d "Audit Home" /sysadmin/audit/output #
share -F nfs -o ro -d "Audit Home" /sysadmin/audit/bin

# AutoFS service [refreshed]

/etc # svcs | grep -i autofs
online 9:16:10 svc:/system/filesystem/autofs:default

PROBLEM
-----------

Automounted directories loose permissions once automounted

Before :

drwxr-xr-x 2 root other 4608 Jul 22 10:22 output
drwxr-xr-x 2 root other 512 Jul 22 10:19 bin

After [IE After cd'ing into directory]:

dr-xr-xr-x 1 root root 1 Jul 22 09:29 output
dr-xr-xr-x 1 root root 1 Jul 22 09:29 bin

# cd output
bash: cd: output: Permission denied
# id
uid=0(root) gid=0(root)

Can anyone tell me why my directory permissions are changing and how to
make them persistant with automountd?

Thanks
http://www.espeed.com
CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are
confidential. If you are not the named recipient please notify the sender and
immediately delete it. You may not disseminate, distribute, or forward this
e-mail message or disclose its contents to anybody else. Copyright and any
other intellectual property rights in its contents are the sole property of
eSpeed, Inc and its affiliates.
This e-mail was issued by eSpeed International Limited (eSpeed). eSpeed is a
limited liability company incorporated under the laws of England (company
number 3809189 and VAT registration number 577 406809). eSpeeds registered
office is at 40 Bank Street, Canary Wharf, London E14 5DW. For any issues
arising from this email please reply to the sender.
E-mail transmission cannot be guaranteed to be secure or error-free. The
sender therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version.
Although we routinely screen for viruses, addressees should check this e-mail
and any attachments for viruses. We make no representation or warranty as to
the absence of viruses in this e-mail or any attachments. Please note that to
ensure regulatory compliance and for the protection of our customers and
business, we may monitor and read e-mails sent to and from our server(s).
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: mmap problem
    ... if you map with PROT_EXECUTE the underlying ... I could not change the permissions by my self but had to ... However I thought the lib is installed by sam as depot file ... > arbitrarily map in binaries and execute them when they don't ...
    (comp.sys.hp.hpux)
  • Re: mmap problem
    ... > The permissions of libCsup_v2.2 are ... > Is the executable flag required for memory mapping? ... if you map with PROT_EXECUTE the underlying ... arbitrarily map in binaries and execute them when they don't ...
    (comp.sys.hp.hpux)
  • Re: Rights to execute jobs?
    ... Does anyone know if the rules surrounding stored procedure permissions apply ... Does this apply to a proc calling sp_start_job so that I ... raise the alert, so it could be anyone on the server. ... is that a group needs to not be an admin but still be able to execute ...
    (microsoft.public.sqlserver.security)
  • Re: Clients not able to login to Domain
    ... that are not working as well as the Laptop that is. ... I assume that you have check the permissions on the share in question. ... >> You say Not able to login, but then your error is not able to map? ... >>> network resource. ...
    (microsoft.public.windows.server.sbs)
  • Re: Clients not able to login to Domain
    ... on subsequent attempts with other workstations ... it may be a "permissions" issue. ... > You say Not able to login, but then your error is not able to map? ...
    (microsoft.public.windows.server.sbs)