LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SMB share Centos/RHEL5 (https://www.linuxquestions.org/questions/linux-newbie-8/smb-share-centos-rhel5-662938/)

keyboard1973 08-15-2008 03:56 AM

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

odcheck 08-15-2008 04:01 AM

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


keyboard1973 08-16-2008 02:46 AM

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

billymayday 08-16-2008 04:02 AM

Can you show the exact mount command and error message.


Post anything relevant from logs on client and server

keyboard1973 08-17-2008 12:40 AM

Quote:

Originally Posted by billymayday (Post 3249426)
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


All times are GMT -5. The time now is 05:32 AM.