LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-10-2009, 03:24 AM   #1
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
mount.cifs credentials=/path-to-passwd-file not parsing


Hi,

I have RHEL5.4 and I am trying to mount a windows share.
From the older server entry file system type smb or smbfs it gives me error:
mount: unknown filesystem type 'smbfs'

Tried using cifs, i am able to mount windows share, however using option credentials=/path-to-passwd as mentioned in man 8 mount.cifs

credentials=filename
specifies a file that contains a username and/or password. The
format of the file is:

username=value
password=value
This is preferred over having passwords in plaintext in a shared
file, such as /etc/fstab. Be sure to protect any credentials file
properly.

I am unable to mount it.

My password contains meta characters something like $@.

Any idea what could be the reason? I am passing following options:
-o user=my_user,credentials=/etc/smbfs.credentials,domain=MY-DOMAIN,uid=USER,gid=USER,ro

And getting error:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


Thanks.

Last edited by xxx_anuj_xxx; 11-10-2009 at 03:24 AM. Reason: typo
 
Old 11-10-2009, 03:44 AM   #2
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Original Poster
Rep: Reputation: 16
It's working now.

Method:

printf "username=ray5147\ndomain=esri.com\npassword=xxx" > \
/etc/auto.smb.credentials

Source:
https://bugzilla.redhat.com/show_bug.cgi?id=532153

Thanks & regards
Anuj
 
  


Reply


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
reading credentials from a passwd file in perl ZAMO Linux - Software 3 02-06-2009 01:16 AM
File Permissions Masking with Mount.CIFS ThePowerTool Linux - Newbie 4 06-02-2008 06:12 PM
cifs mount ok, problems on file transfer tomazN Linux - Software 0 10-22-2007 03:40 AM
Mounting windows share via cifs (fstab entry) - error 13 opening credentials file O(V)eGA_l2el) Linux - Networking 2 12-05-2006 11:22 AM
CIFS Mount not showing large directories (file counts). damber Linux - Networking 3 11-24-2006 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:24 PM.

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