Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ [1] 2 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Seeing Samba shares from windows< Next Oldest | Next Newest >
Oostertoaster Offline





Group: Members
Posts: 9
Joined: May 2005
Posted: June 13 2005,13:59 QUOTE

I have recently resurrected by legacy PC with DSL, and I am now trying to set it up as a file server (essentially a mass storage device or external hard drive.  ITs all the PC is good for anymore, really.)

Some specs on the PC:
83 MHz Pentium overdrive
64 Megs of Ram
2 harddrives (one 13.6 gig, one 6.5 gig)
the hard drives are split into 2 gig partitions because the bios is so old, that is all it can read (apparently).
DSL is installed on the HD (its own 2 gig partition on the 6.5 gig drive.)

The network card is configured correctly, obtains an ip address via the router, etc.  I can even see the linux box from the Windows XP laptop.  HOwever, when I try to access one of the shared drives, it says I do not have permission to utilize that network resource.  Its quite frusterating.  I added my username and password to the passwd file, which is why I can see the shares in the first place, I believe.  How do I obtain permissions to use the shares?  

(I'm attempting to share entire partitions, if that makes a difference.  The way I've got it set up now, I'm trying to share 3  seperate FAT parititions, all of them at 2 gigs each.  This shouldn't be that big of a problem though.)

Please help, this is becoming a very frusterating project.  If I don't figure this out soon, I'll go insane.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 13 2005,15:16 QUOTE

Don't know how much this helps, but this is what i have in smb.conf that allows windows users to write to a share called "shared" (on suse):
[global]
       netbios name = BUNGLE
       server string = Samba Server
       interfaces = eth0
       encrypt passwords = Yes
       map to guest = Bad User
       time server = Yes
       unix extensions = Yes
       socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
       printcap name = CUPS
       os level = 2
       local master = No
       domain master = No
       hosts allow = 192.168.1.101,192.168.1.102
       nt acl support = No
       printing = cups
       veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[shared]
       comment = Network Share
       path = /home/shared
       read only = No
       create mask = 0644
       guest ok = Yes

Some of it is default settings that i couldn't explain.
I think the "encrypt passwords" option is particularly important for windows machines.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: June 14 2005,03:33 QUOTE

DSL has a small network utility - smbclient, which lets Linux see Windows directories, and exchange files in an "ftp-like" manner.
But for Windows to see Linux you need the full Samba package.  You can download it from the mydsl section.
Then there's quite a bit of configuration involved.  Here goes -

From Windows you will need to supply a username and password to access the Linux box.  Decide whether you want this to be an existing username, or create a new user for the purpose of sharing.  Let's say we make a new user called "shareuser", password "helloworld", SMB password "helloshare".  Do this -
adduser shareuser
Enter new UNIX password: helloworld
smbpasswd -a shareuser
password: helloshare

Now edit your samba configuration file - /etc/samba/smb.conf
in the [global] section,
workgroup = yourworkgroupname

In  ## Authentication ## section
encrypt passwords = yes

In Share Definitions section, comment out all existing shares.  Add:
[shareuser]
comment = Windows Share
path = /home/shareuser
read only = no
Uncomment  writable = no
Change 2x permissions masks to 0775

Now after you start these 2 daemons -
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
Windows should be able to browse the /home/shareuser directory.
Some applications automatically start these daemons (LinNeighborhood?)
Craig S
Back to top
Profile PM 
Oostertoaster Offline





Group: Members
Posts: 9
Joined: May 2005
Posted: June 16 2005,11:56 QUOTE

I'm still having troubles getting this to work.  My smb.conf file is very similiar to the suggested ones above.  Also, the proper daemons have started already (smbd, nmbd) and are running.  smbclient registers the proper shares (/dev/hdb5 and /dev/hdb6)

However, when I try to mount the shares from my XP laptop or Win98SE box, I get a dialog that says I do not have permission to use that resource (Despite adding proper permissions to the passwd file and using chmod to modify the permissions, etc.)  

To see if the problem was isolated to my windows boxes, I tried to mount the shares on the linux box themselves in LinNeighborhood (kind of circular, mounting a share to the machine that is sharing it, but I wanted to see if Linux was able to mount the share.)  This doesn't work either! It says I have the incorrect password (Can't remember the exact dialog box, and I'm posting this from work.  When I get home I'll run it again and get exact wording if needed.)  

So, because of this I'm assuming I have some sort of authentication/password problem.  But I'm pretty new to linux in general (and even newer to DSL in particular).  Anyone have any further ideas?  I'd really appreciate it.

EDIT: One thing I thought of, my smb.conf file has no "create mask= " lines.  Are those necessary? It already has "public=yes" and "guest =ok".
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 16 2005,15:03 QUOTE

create mask is for setting permissions on files that the user creates in a particular share. It should have no impact on whether or not the user can initially log in.

Maybe the "hosts allow" and "encrypt passwords" options should be checked.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
19 replies since June 13 2005,13:59 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: Seeing Samba shares from windows

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code