connect to smb share on NAS
I've got a NAS drive which has an ftp and samba server.
There's not much to configure when I enter the admin page of my NAS. I specified some folders as smb shares on it. When I'm trying to connect to the share I get an error Code:
[xtd8865@localhost ~]$ smbclient -L 192.168.1.102 Code:
[xtd8865@localhost ~]$ findsmb As I said there's not much to configure on the NAS SMB server. There's a tab 'smb server'. There are only 2 things there - a folder list and a sharing list so I added 2 of main NAS folders to the sharing list and that's it. any hints thanks |
Do you know what type of share authentication is being used? Choices are Windows for Workgroups, NT Lan Manager, and Active Directory. Hopefully such as simple configuration would use W4WG share level security.
If that is the case then does your NAS provide a way to associate a password with any/all shares or overall access to the NAS? If it does then set some password. Any password will do. You are using SMB utilities that I've never heard of much less ever used. Your NAS almost certainly has an IP address. Try mounting a share to a mount point on your computer. Code:
mkdir /mnt/nas.public Code:
mount -t cifs //192.168.1.5/public /mnt/nas.public -o username=<username>,password=<password> Code:
mount -t cifs //192.168.1.5/public /mnt/nas.public -o username=<username>,password=<password>,uid=1000,gid=100 |
thanks for your reply
It uses windows workgroup. I got a notebook with XP to check it and the only thing I had to do is to specify the workgroup and it connected without any problems. There are 2 passwords on my NAS. One is the admin password to change its settings through its website, the other one I set on the samba folder. The file structure of my NAS is as follows: /data /public When I put some other password I got 'permission denied', however when I put the smb folder password: Code:
[root@localhost xtd8865]# mount -t cifs //192.168.1.102/data /mnt/nas -o password=blahblahblah It doesn't have any samba user, the only user I had to set is the admin user to access its web control panel. I tried the command including the user but the outcome it exactly the same ie. not a directory. Apart from specifying a workgroup and smb shared folders, there's really nothing more to configure on my NAS thanks |
Issues with CIFS on CentOS 5.2 (but not 5.0)
I have been installing CentOS 5 for many months now. I have been adding the u/mount.cifs(v1.8) files and using them to connect to Netgear/ Infrant ReadyNAS NV+ devices. Having a need to ghost these machines I needed to start installing CentOS 5.2 which allows ghost to work with the selinux partition information.
Following the same procedure I always do on a freshly installed OS (copying the u/mount.cifs (v1.8)) and the scripts I use to mount the NAS shares. I ran the scripts only to come up with: mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) I have tried all forms to mount the share to no avail. Meanwhile the same script and u/mount.cifs files work fine on the CentOS 5 boxes. script entry: mount -t cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o credentials=/root/VMbkp.cred Other attempts: mount -t cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o credentials=/root/VMbkp.cred :: where password was enclosed with quotes. -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount.cifs -t cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o credentials=/root/VMbkp.cred -> Mounting the DFS root for domain not implemented yetNo ip address specified and hostname not found mount -t cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -ousername=domain\vmbackup,password=[R#M)T#D@T@] -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount -t cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o[SPACE]username=domain\vmbackup,password=[R#M)T#D@T@] -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount -t cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o username=domain/vmbackup,password=[R#M)T#D@T@] -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount -t cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o user=domain\vmbackup,pass=[R#M)T#D@T@] -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount.cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o user=domain\vmbackup,pass=[R#M)T#D@T@] -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount.cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o user=vmbackup,pass=[R#M)T#D@T@],dom=domain -> -bash: !,dom=domain: event not found mount.cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o dom=domain,user=vmbackup,pass=[R#M)T#D@T@] -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount.cifs //nas1.domain.internal/vm-base /mnt/NAS1/vm-base -o domain=domain,user=vmbackup,pass=[R#M)T#D@T@] -> mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) Please can anyone help explain why I can mount from CentOS 5 systems but not CentOS 5.2? UPDATE: Using --verbose for 5.0 and 5.2 systems shows that CIFS appears to be mis-parsing options. Notice the quotes in the verbose output on the 5.2 system. 5.0: # ./mountNAS1.sh parsing options: rw,credentials=/root/VMbkp.cred mount.cifs kernel mount options unc=//nas1.domain.internal\vm-base,ip=10.1.129.16,user=vmbackup,,,,,,,,,,domain=domain,pass=[R#M)T#D@T@],ver=1,rw,credentials=/root/VMbkp.cred parsing options: rw,credentials=/root/VMbkp.cred mount.cifs kernel mount options unc=//nas1.domain.internal\backup,ip=10.1.129.16,user=vmbackup,,,,,,,,,,domain=domain,pass=[R#M)T#D@T@],ver=1,rw,credentials=/root/VMbkp.cred 5.2: # ./mountNAS1.sh parsing options: rw,credentials=/root/VMbkp.cred mount.cifs kernel mount options unc=//nas1.domain.internal\vm-base,ip=10.1.129.16,user=vmbackup",,,,,,,,,,,domain="domain,pass="[R#M)T#D@T@]",ver=1,rw,credentials=/root/VMbkp.cred mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) parsing options: rw,credentials=/root/VMbkp.cred mount.cifs kernel mount options unc=//nas1.domain.internal\backup,ip=10.1.129.16,user=vmbackup",,,,,,,,,,,domain="domain,pass="[R#M)T#D@T@]",ver=1,rw,credentials=/root/VMbkp.cred mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) |
All times are GMT -5. The time now is 09:25 PM. |