LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-06-2008, 04:36 AM   #1
ajaysharma1181
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Arrow samba mount problem


hello please anybody solve my problem...I configured samba server on my machine RHEL5
but it is connecting with window..but when i connecting linux to linux with this command <mount //10.0.0.5/myshare /mnt -o mary> it is giving the error ths..
mount //10.0.0.254/myshare /mnt -o mary
Password:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
which permission i`ll have to give...pls solve this...
 
Old 11-06-2008, 04:41 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There's something about Mary

You will want to read the manpage for mount.cifs as the error message indicates. Mary isn't an option.
Maybe you meant: -o username=mary.

It would be better to have a credentials file saved in a location that not everyone can read. For example ~/.credentials. the file should contain:
username=<username>
password=<password>

Add a domain= line if you need it. Then the option would be "cred=~/.credentials"

The reason to do this is that the /etc/password file is globally readable. You don't want a username and password in a file that everyone can read.

Last edited by jschiwal; 11-07-2008 at 01:51 AM. Reason: Change from retorical to statement.
 
Old 11-06-2008, 05:08 AM   #3
ajaysharma1181
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
yes mary is user and i wrote in /etc/samba/smb.conf this

[myshare]
comment = hello
path = /data
valid users = mary fred
host deny = 10.0.0.3
public = no
writable = yes
printable = no
create mask = 0765
 
  


Reply



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
mount problem with samba narendra.pant Fedora 3 11-17-2006 12:09 AM
Samba mount drive and profiles have some problem leiw Linux - General 0 11-03-2006 04:45 AM
samba mount problem clockworks Linux - Software 0 04-21-2004 12:47 PM
samba mount problem jinujose Linux - Networking 2 10-09-2003 10:45 PM
Samba Mount Problem cmfarley19 Linux - Networking 10 02-10-2003 12:42 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:53 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
Open Source Consulting | Domain Registration