LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-15-2007, 01:52 PM   #1
sambauser
LQ Newbie
 
Registered: May 2007
Posts: 4

Rep: Reputation: 0
"Access denied" error on Samba mount


Hi,

I am trying to mount a samba share on to a Windows 2003 server.

When I do,
devdb001:/ # mount -t cifs -o username=mysql,password=pass //10.141.52.15/linuxbak/mysql_db/devdb /media/devdb/
retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


My smb.conf is,
[global]
workgroup = MY.COM
map to guest = Bad User
usershare allow guests = Yes
valid users = root, mysql
force user = mysql

[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes
browseable = No

[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[devdb]
comment = Share for devdb001 on backup server
path = /media/devdb
write list = root, mysql
read only = No
create mask = 0600
directory mask = 0700
inherit acls = Yes


The user mysql is added to the smbpasswd file.

Also,
devdb001:/ # smbclient -L 10.141.55.66 -U mysql
Password:
Domain=[DEVDB001] OS=[Unix] Server=[Samba 3.0.22-13.30-1290-SUSE-SLES10]

Sharename Type Comment
--------- ---- -------
profiles Disk Network Profiles Service
users Disk All users
groups Disk All groups
devdb Disk Share for devdb001 on backup server
IPC$ IPC IPC Service (Samba 3.0.22-13.30-1290-SUSE-SLES10)
ADMIN$ IPC IPC Service (Samba 3.0.22-13.30-1290-SUSE-SLES10)
mysql Disk Home Directories
Domain=[DEVDB001] OS=[Unix] Server=[Samba 3.0.22-13.30-1290-SUSE-SLES10]

Server Comment
--------- -------

Workgroup Master
--------- -------
OVE-VICKI OVE-DC01
OVE.COM DEVDB001
OVE.LOCAL AMANDABACKUP

Can someone tell me what I am doing wrong?

Thanks.
 
Old 10-15-2007, 07:25 PM   #2
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
"I am trying to mount a samba share on to a Windows 2003 server"

I am a little confused if your trying to connect to a share on the linux box or the windows box.

To mount windows shares with linux you do not need to have a samba server running, just the samba client. If that's the case your smb.conf file has no barring here.

If it's truly is a Linux to a windows share check out smbmount command. If it's the other way, make sure you have an account setup using pdbedit and the user has access to that file.

If you want to use mount like you have

mount -t cifs

I believe that should changed to

mount -t smbfs

Also this part:

//10.141.52.15/linuxbak/mysql_db/devdb

Assumes that the windows share name is "linuxbak" and it has a mysql_db/devdb folder under that.
 
Old 10-16-2007, 09:45 AM   #3
sambauser
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Problem resolved

Thanks for helping Road....

The issue was with the subdirectories that I was mounting. Its working fine now. Thanks.
 
  


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
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 45 04-06-2020 05:31 AM
Samba + CUPS "Access denied, unable to connect" error lirik Linux - Networking 10 10-13-2011 01:09 PM
Email Error - "Recipient address rejected: Relay access denied" ripcord Linux - Newbie 1 10-31-2002 03:00 PM
Samba Printing "Access Denied" !! lmaher Linux - Networking 1 06-20-2002 09:36 AM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 06:38 PM

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

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