I have a Windows Server 2003 system I'm trying to back up to a Linux host.
when I access the share with smbclient, I can "see" the files (`ls` returns a list of files, etc)
smbclient -U shareuser //server/sharename password
But, when I try to actually mount the drive, I get "permission denied" errors trying to access the drive. (EG: using `df`) Running the following command takes about 10 seconds:
smbmount //server/sharename /mnt/servername -o \ credentials=/path/to/credentials,ro
I've also tried an alternate format:
mount -t smbfs -o username=USERNAME //server/sharename /mnt/servername
Same results both ways. I found a CentOS forum where somebody had problems with the RPM package, but retrograding to the package(s) he recommends didn't change anything. http://www.centos.org/modules/newbb/viewtopic.php?topic_id=2307
I'm running the latest samba-client & samba-common on CentOS 4.2. SELinux is in warn mode. Here's the /var/log/messages when I mount:
Feb 2 19:42:16 sol kernel: SELinux: initialized (dev smbfs, type smbfs), uses genfs_contexts Feb 2 19:42:16 sol kernel: smb_retry: no connection process Feb 2 19:42:46 sol kernel: smb_add_request: request [c554bee0, mid=0] timed out! Feb 2 19:42:46 sol kernel: smb_delete_inode: could not close inode 2 Feb 2 19:42:46 sol kernel: SELinux: initialized (dev smbfs, type smbfs), uses genfs_contexts Feb 2 19:42:46 sol mount.smbfs[21755]: [2006/02/02 19:42:46, 0] client/smbmount.c:send_fs_socket(410) Feb 2 19:42:46 sol mount.smbfs[21755]: mount.smbfs: entering daemon mode for service \heliodorite.sunset.net\iissites, pid=21755
Running with debug=8 didn't provide much that was helpful. Any ideas where to go from here?
-Ben
Benjamin Smith wrote:
I have a Windows Server 2003 system I'm trying to back up to a Linux host.
when I access the share with smbclient, I can "see" the files (`ls` returns a list of files, etc)
smbclient -U shareuser //server/sharename password
But, when I try to actually mount the drive, I get "permission denied" errors trying to access the drive. (EG: using `df`) Running the following command takes about 10 seconds:
smbmount //server/sharename /mnt/servername -o \ credentials=/path/to/credentials,ro
I've also tried an alternate format:
mount -t smbfs -o username=USERNAME //server/sharename /mnt/servername
Same results both ways. I found a CentOS forum where somebody had problems with the RPM package, but retrograding to the package(s) he recommends didn't change anything. http://www.centos.org/modules/newbb/viewtopic.php?topic_id=2307
I'm running the latest samba-client & samba-common on CentOS 4.2. SELinux is in warn mode. Here's the /var/log/messages when I mount:
Feb 2 19:42:16 sol kernel: SELinux: initialized (dev smbfs, type smbfs), uses genfs_contexts Feb 2 19:42:16 sol kernel: smb_retry: no connection process Feb 2 19:42:46 sol kernel: smb_add_request: request [c554bee0, mid=0] timed out! Feb 2 19:42:46 sol kernel: smb_delete_inode: could not close inode 2 Feb 2 19:42:46 sol kernel: SELinux: initialized (dev smbfs, type smbfs), uses genfs_contexts Feb 2 19:42:46 sol mount.smbfs[21755]: [2006/02/02 19:42:46, 0] client/smbmount.c:send_fs_socket(410) Feb 2 19:42:46 sol mount.smbfs[21755]: mount.smbfs: entering daemon mode for service \heliodorite.sunset.net\iissites, pid=21755
Running with debug=8 didn't provide much that was helpful. Any ideas where to go from here?
-Ben
mount -t smbfs -o username=USERNAME,password=PASSWORD //server/sharename /mnt/servername
John
On Thursday 02 February 2006 19:13, John Merritt wrote:
mount -t smbfs -o
username=USERNAME,password=PASSWORD //server/sharename /mnt/servername
Tried this. Exactly. Still get permission denied. (!#@!@)
[root@linuxhost bin]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda3 3510364 789896 2542148 24% / /dev/hda1 147764 11298 128837 9% /boot none 79328 0 79328 0% /dev/shm /dev/md0 240362560 175314200 52838568 77% /backups df: `/mnt/servername': Permission denied
And, the relevant /var/log/messages: Feb 2 20:24:10 linuxhost kernel: SELinux: initialized (dev smbfs, type smbfs), uses genfs_contexts Feb 2 20:24:10 linuxhost kernel: smb_retry: no connection process Feb 2 20:24:40 linuxhost kernel: smb_add_request: request [c67b9ee0, mid=0] timed out! Feb 2 20:24:40 linuxhost kernel: smb_delete_inode: could not close inode 2 Feb 2 20:24:40 linuxhost kernel: SELinux: initialized (dev smbfs, type smbfs), uses genfs_contexts Feb 2 20:24:40 linuxhost mount.smbfs[21830]: [2006/02/02 20:24:40, 0] client/smbmount.c:send_fs_socket(410) Feb 2 20:24:40 linuxhost mount.smbfs[21830]: mount.smbfs: entering daemon mode for service \windowshost\iissites, pid=21830
-Ben
-- "The best way to predict the future is to invent it." - XEROX PARC slogan, circa 1978
Did you try disabling SELinux?
-- Eduardo Grosclaude Universidad Nacional del Comahue Neuquen, Argentina
SELinux is permissive. Additionally, I've run `setenforce 0`
I'm against a stone wall, here.
WTF?
-Ben
# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=permissive # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted
-Ben On Friday 03 February 2006 08:02, Eduardo Grosclaude wrote:
Did you try disabling SELinux?
-- Eduardo Grosclaude Universidad Nacional del Comahue Neuquen, Argentina
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Benjamin Smith wrote:
SELinux is permissive. Additionally, I've run `setenforce 0`
I'm against a stone wall, here.
WTF?
-Ben
Ben,
The user you're attempting to mount the shares with, has this user account been "enabled" in samba?
On 2/2/06, Benjamin Smith lists@benjamindsmith.com wrote:
I have a Windows Server 2003 system I'm trying to back up to a Linux host.
when I access the share with smbclient, I can "see" the files (`ls` returns a list of files, etc)
smbclient -U shareuser //server/sharename password
But, when I try to actually mount the drive, I get "permission denied" errors trying to access the drive. (EG: using `df`) Running the following command takes about 10 seconds:
Have you checked the permissions and user accessibility? Is selinux active on the system?
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center
Trying to keep this alive - I'm up against a wall here!
I can use smbclient and not only see files, but actually download them (with get) but I can't mount said Windows share locally to a drive - I universally get a "permission denied" error.
1) I've tried mounting via a line in fstab.
2) I've tried smbmount with every option I could find.
3) I've tried using mount with every option I could find.
How could it work in smbclient with the same credentials, but not as an smb mount? Is there something about how the Linux localhost is being announced, perhaps?
-Ben
On Thursday 02 February 2006 18:45, Benjamin Smith wrote:
I have a Windows Server 2003 system I'm trying to back up to a Linux host.
when I access the share with smbclient, I can "see" the files (`ls` returns
a
list of files, etc)
smbclient -U shareuser //server/sharename password
But, when I try to actually mount the drive, I get "permission denied"
errors
trying to access the drive. (EG: using `df`) Running the following command takes about 10 seconds:
smbmount //server/sharename /mnt/servername -o \ credentials=/path/to/credentials,ro
I've also tried an alternate format:
mount -t smbfs -o username=USERNAME //server/sharename /mnt/servername
Same results both ways. I found a CentOS forum where somebody had problems with the RPM package, but retrograding to the package(s) he recommends
didn't
change anything. http://www.centos.org/modules/newbb/viewtopic.php?topic_id=2307
I'm running the latest samba-client & samba-common on CentOS 4.2. SELinux is in warn mode. Here's the /var/log/messages when I mount:
Feb 2 19:42:16 sol kernel: SELinux: initialized (dev smbfs, type smbfs),
uses
genfs_contexts Feb 2 19:42:16 sol kernel: smb_retry: no connection process Feb 2 19:42:46 sol kernel: smb_add_request: request [c554bee0, mid=0] timed out! Feb 2 19:42:46 sol kernel: smb_delete_inode: could not close inode 2 Feb 2 19:42:46 sol kernel: SELinux: initialized (dev smbfs, type smbfs),
uses
genfs_contexts Feb 2 19:42:46 sol mount.smbfs[21755]: [2006/02/02 19:42:46, 0] client/smbmount.c:send_fs_socket(410) Feb 2 19:42:46 sol mount.smbfs[21755]: mount.smbfs: entering daemon mode for service \heliodorite.sunset.net\iissites, pid=21755
Running with debug=8 didn't provide much that was helpful. Any ideas where
to
go from here?
-Ben
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Benjamin Smith wrote:
Trying to keep this alive - I'm up against a wall here!
I can use smbclient and not only see files, but actually download them (with get) but I can't mount said Windows share locally to a drive - I universally get a "permission denied" error.
I've tried mounting via a line in fstab.
I've tried smbmount with every option I could find.
I've tried using mount with every option I could find.
How could it work in smbclient with the same credentials, but not as an smb mount? Is there something about how the Linux localhost is being announced, perhaps?
-Ben
On Thursday 02 February 2006 18:45, Benjamin Smith wrote:
I have a Windows Server 2003 system I'm trying to back up to a Linux host.
when I access the share with smbclient, I can "see" the files (`ls` returns
a
list of files, etc)
smbclient -U shareuser //server/sharename password
But, when I try to actually mount the drive, I get "permission denied"
errors
trying to access the drive. (EG: using `df`) Running the following command takes about 10 seconds:
smbmount //server/sharename /mnt/servername -o \ credentials=/path/to/credentials,ro
I've also tried an alternate format:
mount -t smbfs -o username=USERNAME //server/sharename /mnt/servername
Same results both ways. I found a CentOS forum where somebody had problems with the RPM package, but retrograding to the package(s) he recommends
didn't
change anything. http://www.centos.org/modules/newbb/viewtopic.php?topic_id=2307
I'm running the latest samba-client & samba-common on CentOS 4.2. SELinux is in warn mode. Here's the /var/log/messages when I mount:
Feb 2 19:42:16 sol kernel: SELinux: initialized (dev smbfs, type smbfs),
uses
genfs_contexts Feb 2 19:42:16 sol kernel: smb_retry: no connection process Feb 2 19:42:46 sol kernel: smb_add_request: request [c554bee0, mid=0] timed out! Feb 2 19:42:46 sol kernel: smb_delete_inode: could not close inode 2 Feb 2 19:42:46 sol kernel: SELinux: initialized (dev smbfs, type smbfs),
uses
genfs_contexts Feb 2 19:42:46 sol mount.smbfs[21755]: [2006/02/02 19:42:46, 0] client/smbmount.c:send_fs_socket(410) Feb 2 19:42:46 sol mount.smbfs[21755]: mount.smbfs: entering daemon mode for service \heliodorite.sunset.net\iissites, pid=21755
Running with debug=8 didn't provide much that was helpful. Any ideas where
to
go from here?
-Ben
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Did you add the smbuser? smbpasswd -a
John
On Friday 03 February 2006 17:20, John Merritt wrote:
Did you add the smbuser? smbpasswd -a
John, I tried it.
smbpasswd -a <username>
then tried mounting it again, and (unfortunately) got the same "permissions denied" error when I ran smbmount and then checked it with df.
I'm not running a samba server, I'm accessing a share from a Win2003 system, and my understanding of smbpasswd is that it would be used for setting passwords for a local share as accessed by other client systems. Am I missing something?
I used the same smbmount invocations previously with a Windows 2000 server, but it got upgraded to Windows 2003, and things broke.
The part that has me really scratching my head is that, while I persistently get this permission denied error when I try to smbmount the partition, I can access it fine with smbclient, not only listing files, but saving them to the local system!
-Ben
The part that has me really scratching my head is that, while I persistently get this permission denied error when I try to smbmount the partition, I can access it fine with smbclient, not only listing files, but saving them to the local system!
Out of curiosity, have you checked your firewall settings on both machines? Make sure that 137-139 and 445 are open. Most people seem to be forgetting 445 these days. That and the windows firewall likes to cause issues....
-- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775
The firewall on the mounting host is pretty much the CentOS default, which includes the "Established,related" clause in /etc/sysconfig/iptables.
To be sure, I opened up 137-139 & 445, still got the same results, so I turned off the firewall altogether. Same results.
This is driving me NUTS! I've got smb mounts of Windows 2000, Windows XP, Win98, and other Samba shares working elsewhere. What's the difference between smbclient and smbmount from the perspective of permissions?
-Ben
On Friday 03 February 2006 19:50, Jim Perrin wrote:
The part that has me really scratching my head is that, while I
persistently
get this permission denied error when I try to smbmount the partition, I
can
access it fine with smbclient, not only listing files, but saving them to
the
local system!
Out of curiosity, have you checked your firewall settings on both machines? Make sure that 137-139 and 445 are open. Most people seem to be forgetting 445 these days. That and the windows firewall likes to cause issues....
-- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Fri, 2006-02-03 at 23:48, Benjamin Smith wrote:
The firewall on the mounting host is pretty much the CentOS default, which includes the "Established,related" clause in /etc/sysconfig/iptables.
To be sure, I opened up 137-139 & 445, still got the same results, so I turned off the firewall altogether. Same results.
This is driving me NUTS! I've got smb mounts of Windows 2000, Windows XP, Win98, and other Samba shares working elsewhere. What's the difference between smbclient and smbmount from the perspective of permissions?
Smbclient reads /etc/samba/smb.conf and uses the password server and domain (workgroup) if set there. I'm not sure if smbmount does the same, but I've had a few surprises when smbclient (as used by backuppc) used a domain login when I thought I was specifying a local account on the target machine.
On Fri, 2006-02-03 at 21:48 -0800, Benjamin Smith wrote:
The firewall on the mounting host is pretty much the CentOS default, which includes the "Established,related" clause in /etc/sysconfig/iptables.
To be sure, I opened up 137-139 & 445, still got the same results, so I turned off the firewall altogether. Same results.
This is driving me NUTS! I've got smb mounts of Windows 2000, Windows XP, Win98, and other Samba shares working elsewhere. What's the difference between smbclient and smbmount from the perspective of permissions?
---- quite a lot actually...generally smbclient commands are a lot more flexible and permit 'guest' users to enumerate.
smbmount also infers a root mount on the system itself whereas smbclient would simply run in user space and connect to users home file system.
Logs are your friend...your answers are probably in a log somewhere...
(note - as root)
# mkdir /mnt/windows-share
# mount -t smbfs //SERVER-NAME/share_name /mnt/windows-share \ -o "username=VALID_WINDOWS_ACCOUNT,password=PASSWORD_FOR_VALID_ACCOUNT"
you might want to add things like uid=500,gid=500 inside quotes for your user/group id's
Craig
On Fri, 2006-02-03 at 23:46 -0700, Craig White wrote:
(note - as root)
# mkdir /mnt/windows-share
# mount -t smbfs //SERVER-NAME/share_name /mnt/windows-share \ -o "username=VALID_WINDOWS_ACCOUNT,password=PASSWORD_FOR_VALID_ACCOUNT"
And it your SMB machine is a W2K3, try mount -t cifs //SERVER-NAME/share_name /mnt/windows-share -o "username=VALID_WINDOWS_ACCOUNT,password=PASSWORD_FOR_VALID_ACCOUNT"
It should work better with new W2k3 AD Security
M$-Internet Exploder est le cancer de l'Internet, voyez pourquoi ici : http://www.aful.org/publi/articles/msie_et_la_securite/index_html/view -----------------> http://www.shlomifish.org/no-ie/ <-----------------
-- (°- Bernard Lheureux Gestionnaire des MailingLists ML, TechML, LinuxML //\ http://www.bbsoft4.org/Mailinglists.htm ** MailTo:root@bbsoft4.org v_/_ http://www.bbsoft4.org/ <<<<<< * >>>>>> http://www.portalinux.org/
On 2/3/06, Benjamin Smith lists@benjamindsmith.com wrote:
I have a Windows Server 2003 system I'm trying to back up to a Linux host.
when I access the share with smbclient, I can "see" the files (`ls` returns a list of files, etc)
smbclient -U shareuser //server/sharename password
But, when I try to actually mount the drive, I get "permission denied" errors trying to access the drive. (EG: using `df`) Running the following command takes about 10 seconds:
smbmount //server/sharename /mnt/servername -o \ credentials=/path/to/credentials,ro
hey,
sometimes it is not possible to access windows 2003 shares with smbmount command .
Try this command it works for me :
mount -t cifs -o username=valid_user //windows2003machine/share name /mnt/smb(linux mount point).
Regards
Ankush