Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-24-2013, 05:53 AM   #1
Registered: Jan 2013
Posts: 55

Rep: Reputation: Disabled
Exclamation Automating Mounting With Linux SAMBA

Hie guys i am trying to mount a windows shared directory into RHEL 5.3 i have configured sftab with the necessary information. I have created smbpass.txt containing credentials of domain user and password. When i try to run the following command

mount -t cifs -o username=username,password=somepassword //machine_name/lpn /mtn/lpn

i receive this error

mount error 13 = Permission denied
Attached Files
File Type: txt smbpass.txt (42 Bytes, 11 views)
File Type: txt fstab.txt (693 Bytes, 11 views)

Last edited by tapi; 05-24-2013 at 06:00 AM.
Old 05-24-2013, 07:21 AM   #2
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,745

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
if you are in a domain, you will also need to add that as one of the options to your mount command.
1 members found this post helpful.


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
Error in mounting samba share in linux machine jsaravana87 Linux - Server 5 10-03-2011 05:10 AM
Mounting Windows directories in Linux - SUSE - SAMBA pedroruiz Linux - Newbie 1 11-20-2009 10:23 PM
automating mounting of windows SMB shares Murdock1979 Linux - Networking 7 04-17-2006 03:22 PM
Mounting Samba shares under Linux xarli Linux - Software 3 10-31-2002 06:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration