LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-15-2008, 04:56 AM   #1
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Rep: Reputation: 15
SMB share Centos/RHEL5


Hello,

I am having an issue mounting my smb share from another centos/redhat box on my lan. I have checked permission for the share and passwords I am still getting an error. When I mount the share from my laptop via GNOME it will mount with the same user name and password. When I try and mount from the cli on the latop to the share on the other centos box I get this...

[root@laptop Desktop]# mount -t cifs -o username=centos/username=username //192.168.2.101/backup /home/keith/Desktop/backup
Password:
mount error 13 = Permission denied

I put the proper username in the cmd line and it asked for the password after I entered this command above, I put the proper password in and thats the error I received. The username im using has permissions to the directory or share I am trying to mount, I also verified the smb.conf that the user name was there as well for the share. I don't understand why I can mount the share w/o issues vie Gnome and I try from cli, then I have an error?

Any suggestions or help is always appreciated.

Thanks again

Keith
 
Old 08-15-2008, 05:01 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
Quote:
[root@laptop Desktop]# mount -t cifs -o username=centos/username=username //192.168.2.101/backup /home/keith/Desktop/backup
Password:
mount error 13 = Permission denied
if you really do so it won't work

you'll have to do it like this for example.

Code:
mount -t cifs -o username=server_user,password=server_password
//192.168.44.100/share_name /path_to/mount_point
 
Old 08-16-2008, 03:46 AM   #3
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
SMB Mount Error

Hello,

I have tried what was suggested and im still getting mount error 13 = Permission denied. It would not have anything to do with iptables or selinux I dont believe? I can mount from GNOME fine just having an issue with the cli.

Thanks again,

Keith
 
Old 08-16-2008, 05:02 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you show the exact mount command and error message.


Post anything relevant from logs on client and server
 
Old 08-17-2008, 01:40 AM   #5
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
Can you show the exact mount command and error message.


Post anything relevant from logs on client and server
Hello,

This is the exact command I used from the root cli, I replaced the username with the one I use and the password with the proper password. Normally I would not use the pass this way as I have read its not secure to do so, I would wait for it to ask for the pass.

mount -t cifs -o usernamer=cent_username,password=password//192.168.2.101/backup /keith/Desktop/backup

I created a backup folder on my laptop desktop as a mount point for the smb share.

Here is a section of the log file

laptop (192.168.2.50) connect to service keyboard112 initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 00:30:34, 1] smbd/service.c:make_connection_snum(1033)
laptop (192.168.2.50) connect to service keyboard112 initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 00:30:35, 1] smbd/service.c:make_connection_snum(1033)
laptop (192.168.2.50) connect to service linux mp3s initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 00:30:37, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service keyboard112
[2008/07/03 00:30:37, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service keyboard112
[2008/07/03 00:30:49, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service linux mp3s
[2008/07/03 00:30:52, 1] smbd/service.c:make_connection_snum(1033)
laptop (192.168.2.50) connect to service backup initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 00:31:03, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service backup
[2008/07/03 06:28:11, 1] smbd/service.c:make_connection_snum(1033)
laptop (192.168.2.50) connect to service keyboard112 initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 06:28:11, 1] smbd/service.c:make_connection_snum(1033)
laptop (192.168.2.50) connect to service linux mp3s initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 06:28:11, 1] smbd/service.c:make_connection_snum(1033)
laptop (192.168.2.50) connect to service backup initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 06:28:11, 1] smbd/service.c:make_connection_snum(1033)
laptop (192.168.2.50) connect to service keyboard112 initially as user keyboard112 (uid=500, gid=0) (pid 10389)
[2008/07/03 06:28:21, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service keyboard112
[2008/07/03 06:28:21, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service linux mp3s
[2008/07/03 06:28:21, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service backup
[2008/07/03 06:28:21, 1] smbd/service.c:close_cnum(1230)
laptop (192.168.2.50) closed connection to service keyboard112
[2008/07/03 10:00:39, 1] smbd/service.c:close_cnum(1230)
master-2 (192.168.2.151) closed connection to service backup
[2008/07/03 10:06:49, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.2.50. Error = No route to host
[2008/07/05 21:09:43, 1] smbd/service.c:make_connection_snum(1033)
master-2 (192.168.2.151) connect to service backup initially as user keyboard112 (uid=500, gid=0) (pid 26108)

Thanks again,

Keith
 
  


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
Question on implementing perl MIME::Parser using procmail/RHEL5.x(CentOS) rsleventhal Linux - Newbie 7 07-03-2008 03:54 PM
Placing a SMB share inside an NFS share grittyminder Linux - Networking 0 05-14-2008 04:49 AM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 04:41 AM
repost - Apache 2.2.3 on Centos 5 (RHEL5) permissions issue djjoshuad Red Hat 2 04-19-2007 05:47 AM


All times are GMT -5. The time now is 01:13 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