Passing user/pass credentials to automountd map file.


 
Thread Tools Search this Thread
Operating Systems AIX Passing user/pass credentials to automountd map file.
# 1  
Old 10-03-2013
Passing user/pass credentials to automountd map file.

How could I pass credentials to the automountd daemon through it's map files?

Tried credentials=/some/file.txt - Didn't work.
Tried SHARE.domain.com/user/pass/SHARE_NAME in map file - Didn't work
Tried user=USER,pass=PASS - Didn't work.

I can see the mounts created but when I access them all I get is permission denied (So issue looks to be with credentials):

# cd /mounttest/nas
ksh: /mounttest/nasd: permission denied
#

This is AIX 7.1. For Linux this might work with credentials but I'm wondering if AIX even supports automounting while using credentials. Moreover, /etc/cifs_fs/cifscred isn't read but manually mounting, everything works fine.

Cheers,
DH
# 2  
Old 10-03-2013
Have you had made the credentials file contain the proper values in the proper syntax?

Example 'Credentials' used with my fstab:
Code:
username = USERNAME
  domain = DOMAINNAME/IP
password = PASSWORD

hth
# 3  
Old 10-03-2013
Tried your suggestion. Same result. Kept syntax with spaces as you have them, no luck. Removed the spaces, no luck. Still getting

permission denied

Cheers,
# 4  
Old 10-03-2013
Assuming it should mount the NAS to:
Code:
# cd /mounttest/nas

You then seem to try execute another folder (?)
Code:
ksh: /mounttest/nasd: permission denied

Did you wanted to execute the file "d" in /mounttest/nas/?

You might want to share the script executed or the one called.
What is the output of:
Code:
ls /mounttest/ -l
ls /mounttest/nas/ -l

Edit & Note: Have to admit i have no experience with AIX
But if /mounttest/nasd is a script, it might require execution flag: chmod +x /mounttest/nasd

Last edited by sea; 10-03-2013 at 01:01 PM..
# 5  
Old 10-03-2013
No. I'm trying to change directory into /mounttest/nasd at which point I get the permission denied. Should read as follows:

Code:
# cd /mounttest/nasd
ksh: /mounttest/nasd: permission denied
#

When I mount individually using mkcifsmnt that works fine and uses the credentials from /etc/cifs_fs/cifscred. But not when automounting. Automounter works fine on NFS shares that do not have any credentials but not on CIFS where credentials are needed. Trying to get this to work with CIFS.

Just to clarify, when I say automounter I mean the automountd daemon to do so on access and NOT to automount at startup (That's different and works fine).

Cheers,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Curl , download file with user:pass in bash script

Hello, My question is about curl command. (ubuntu14.04) In terminal, I am able to download my mainfile with: curl -u user1:pass1 http://11.22.33.44/******* When I convert it into bash script like this: #!/bin/bash cd /root/scripts computer_ip=11.22.33.44 curl -u $1:$2... (8 Replies)
Discussion started by: baris35
8 Replies

2. UNIX for Beginners Questions & Answers

Passing User Credentials with Mount Command

My HP-UX server currently mounts a directory on a Windows 2012 server. The Windows server allows anonymous connections for RW and this configuration has worked well for years. Now, due to tightening security requirements I can't use anonymous. I also can't setup Identity Mapping on the Windows... (5 Replies)
Discussion started by: jduehmig
5 Replies

3. UNIX for Advanced & Expert Users

Passing credentials via .netric file in Linux

How to create netrc file...I searched in google & got to know that we have to create .netrc file in home directory, I've created .netrc file in in home directory created .netrc file in home directory more .netrc machine $HOSTNAME login xxxx password xxxxx Note: echo $HOSTNAME... (2 Replies)
Discussion started by: sam@sam
2 Replies

4. UNIX for Advanced & Expert Users

Need to pass credentials in one Go

Hi, We usually switch user using the below command. sudo su - user1 It then prompts for the password which we feed in. I wish to pass both the username and the password in one go thus eliminating the prompt for the password. I am using java standalone to connect to unix using... (11 Replies)
Discussion started by: mohtashims
11 Replies

5. Shell Programming and Scripting

perl script to open an executable and pass the user credentials

Is it possible to open an executable file and pass user credentials through the perl script. If yes Please do share the CPAN module names and the way to access the executable file. For eg. I want to open the IBM LOTUS Sametime through my perl code and pass the user credentials like... (1 Reply)
Discussion started by: giridhar276
1 Replies

6. Web Development

How to pass user credentials between apps on the same server?

I have a wordpress site that authenticates against a local ldap database for users to login. On the same server and domain I have subsonic installed that also authenticates against the same ldap database. The ldap database is firewalled front the outside wall and the internal LAN. I would like... (3 Replies)
Discussion started by: barrydocks
3 Replies

7. Shell Programming and Scripting

FTP credentials from a config file

Hi, I am using the following syntax to connect to an FTP server and paste the file. Based on the value in the variable $Folder, i want to connect to different folders on the same server. The credential is different to access different folders. How to get the user name and password from a... (3 Replies)
Discussion started by: ashok.k
3 Replies

8. Red Hat

NIS disabling the MAP for a local user

Hello everybody, we have a NIS User lsfadmin which gets his environment variables from the autmount /home/lsfadmin. A newer version of the application needs a different environment to launch the application. I can't change the environment of the NIS User because we use NIS company wide for... (0 Replies)
Discussion started by: sdohn
0 Replies

9. UNIX for Dummies Questions & Answers

samba user.map file

I am using Samba 3.0.33. The user.map file is not referred anywhere is Smb.conf. Infact, I couldn't see the user.map file any where in samba. But everything seems to be working. Is there an alternative way to refer to the users list. (2 Replies)
Discussion started by: sagar_evc
2 Replies

10. Solaris

Cannot add a user,No /home map.

Hi all! my problem is that i cannot add a user to my system, Solaris 10,I x86, i have search thru this forum several times and i cannot find anything about my problem. I have tried to add a user in SMC, i can make that user and get a symbol for him in the users list in SMC but when i tried to... (2 Replies)
Discussion started by: larsgk
2 Replies
Login or Register to Ask a Question