LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mapping linux folder to windows drive (https://www.linuxquestions.org/questions/linux-networking-3/mapping-linux-folder-to-windows-drive-786915/)

Linux Fan 02-04-2010 05:46 AM

Mapping linux folder to windows drive
 
I'm have a server running linux ver:
Linux version 2.4.22-1.2115.nptl (bhcompile@daffy.perf.redhat.com) (gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)) #1 Wed Oct 29 15:42:51 EST 2003

from my windows xp machine I can see that there are three shared folders using : 1- run then \\10.1.2.4
I can map tow of these folders to a network drive using the root credentials.
but when I tried to map the third one (it was mapped before) I got the following errors:
first asking to insert the password again
http://www.freeimagehosting.net/uploads/b8c6de71a8.jpg

then:
asking to put the password but as a gust
http://www.freeimagehosting.net/uploads/f71a929af4.jpg

Anybody can help?????

jschiwal 02-04-2010 07:42 AM

Which directories are you exporting? Are they read-only? What is the ownership and permissions of the directories and what are they used for? Who should have access?

The "guest" user in Samba is often mapped to the "nobody" user in Linux when guests are allowed and the user is unknown or not authorized to access the share.

Does the Samba server use "smbpasswd" or "tdbsam" for authenticating users?

Please post your /etc/samba/smb.conf to help answer many of these questions.

Linux Fan 02-04-2010 08:42 AM

thank you jschiwal
Actually I can mount/home/lowers but the prob in /home/vss
[root@automation2 root]# ls -l /home/
total 188
drwxr-xr-x 10 root root 4096 Mar 4 2008 automation4
drwxr-xr-x 10 root root 4096 Mar 4 2008 automation_awtar
drwxr-xr-x 10 root root 4096 Feb 13 2008 automation_gear
drwxr-xr-x 11 root root 4096 Jan 17 2008 automation_vj
drwxr-xr-x 4437 vss games 150858 Feb 2 07:00 lowres
drwx------ 2 nagios nagios 4096 Aug 27 2007 nagios
drwxrwxrwx 7 hisham hisham 4096 Jan 17 2008 packages
drwxr-xr-x 2 root root 4096 Jan 24 2006 scripts
-rw-r--r-- 1 root root 8 Jan 17 2008 test
drwxr-xr-x 7 vss root 4096 Dec 24 2007 vss
drwx------ 7 vss vss 4096 May 17 2005 vss2


I used to access the shared folders with the root username and password.
+++++++++++++++++++++++++++++++++++++++++++++++
/etc/samba/smb.conf
[lowres]
path = /home/lowres
public = yes
guest ok = yes
only guest = yes
writable = yes
browseable = yes
read only = no


[vss]
comment = vss for music plus projects
path = /home/vss
valid users = vss
public = no
writable = yes
; printable = no
create mask = 0765
browseable = yes

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765

++++++++++++++++++++++++++++++++++++++++++++=
[root@automation2 root]# more /home/vss/users.txt
Admin = users\admin\ss.ini
Guest = users\guest\ss.ini
Zooz = users\zooz\ss.ini
Hisham = users\hisham\ss.ini
Anu = users\anu\ss.ini
Wael = users\wael\ss.ini


I hope that will help, and thank u again


All times are GMT -5. The time now is 10:41 PM.