LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Mounting a Windows Share in Samba (https://www.linuxquestions.org/questions/slackware-14/mounting-a-windows-share-in-samba-609159/)

alkos333 12-26-2007 03:54 AM

Mounting a Windows Share in Samba
 
I installed Windows on one of the home desktops, so my parents could use it, enabled sharing for "My Documents" folder, then mounted it using smbmount w/o any errors.

However, if I try go in the mounted folder or even view its details, I get the following:

Code:

/bin/ls: cannot access /mnt/samba: Permission denied
camera/  flashdisk/  ipod/  samba
me@tpt60:~$ ls /mnt/samba
/bin/ls: cannot access /mnt/samba: Permission denied
me@tpt60:~$ ls -l /mnt/
/bin/ls: cannot access /mnt/samba: Permission denied
total 0
drwxr-xr-x 2 root root 48 2007-11-23 23:57 camera/
drwxr-xr-x 2 root root 48 2007-11-23 23:57 flashdisk/
drwxr-xr-x 2 root root 48 2007-11-14 23:33 ipod/
?????????? ? ?    ?    ?                ? samba

The mount command I used was pretty simple: smbmount //hpp763n/documents /mnt/samba

Tux-Slack 12-26-2007 04:25 AM

I think you should use the Name of the user on the Windows machine.

smbmount -o username=USER,password=PASS ...
if the user has password that is.

alkos333 12-26-2007 07:33 AM

I didn't have to do this before and was able to mount these same two machines. I'd sometimes use -o uid=me,gid=users and that would set the permissions of the mount point and all of the files to that user, but if that's left out, it should use root:root


All times are GMT -5. The time now is 11:16 AM.