LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-01-2005, 11:37 PM   #1
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Rep: Reputation: 15
Passwordless File Sharing for Windows Clients - How can i do ?


I am running Red Hat 9 , i have 1 80 gb drive and i want to share it to a win98 network.

The idea is to have the music in the hard drive avalidable for the win98 network,
just as a shared folder, with no passwords.

I have tried several configurations but i can't get it to work right.

Any ideas ?

Thanks in advance =)
 
Old 02-02-2005, 05:44 PM   #2
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 294

Rep: Reputation: 32
samba shared folder

You may want to consider this as your entry for your smb.conf

[HDD]
comment = shared area
path = /shared
public = yes
writable = yes

The above assunmes that the you have included wins support and a few other items
in the main body of smb.conf. Also that you have a directory /shared that the music or other
to be shared stuff is in.

Anyway, the above works for me. If you have problems, post back.
 
Old 02-02-2005, 09:39 PM   #3
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
I have been searching the internet, but all the examples i could find use user and password.

The files are going to be shared in a windows 98 network, so they have to be able to see the files just by clicking in the folder.

My fstab entry look like this:

[Peliculas]
comment = Peliculas
path = /mnt/80gb/Peliculas
public = yes
writable = no
browseable = yes
guest ok = yes

I think it's ok, what i need are the entries from the main body.

There is a lot of stuff i don't understand if you could point me to somewhere i can read about it, it would be great =).

Thanks again
 
Old 02-03-2005, 07:37 PM   #4
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
I have configured Samba, i start the service, but there is no responce when i try from any of the client machines, and when i try to get the list of sared folders from the linux i get this error

~~~~~~~~~~~~~~~
smbclient -L //xago3

added interface ip=192.168.0.252 bcast=192.168.0.255 nmask=255.255.255.0
session request to XAGO3 failed (Not listening for calling name)
session request to *SMBSERVER failed (Not listening for calling name)
~~~~~~~~~~~~~~~



Edited: 03/02/05

I had an error in the host allow section, allready fixed.

Last edited by landuchi; 02-03-2005 at 09:26 PM.
 
Old 02-03-2005, 09:24 PM   #5
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
I finally got it working.

The idea of this configuration is to create shares for windows clients, that are accesible with out any client configuration, without setting any user or needing a password. This are the steps i followed in order to make it work, but I am rather new to linux so some of the steps might not be necesary.

I am assuming you allready have samba installed.

1. In order to work you have to create the user pcguest (or the user you defined in "guest account") and set a passwordless account for samba. You can do it with this 2 command lines.

#usually we dont need the user to be able to use any other service so this prevents the user from login into the system.

useradd -s /sbin/nologin pcguest

#this sets a passwordless samba account for pcguest

smbpasswd -a -n pcguest


2. You need to edit samba's config file "smb.conf" usually located at /etc/samba/smb.conf

[global]

workgroup = Trans
server string = xagotrans
netbios name = Server
hosts allow = 192.168.0. 127. Server
guest account = pcguest
invalid users = root
smb passwd file = /etc/samba/smbpasswd
null passwords = yes
log file = /var/log/samba/%m.log
max log size = 1000
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.0.252/24
dns proxy = no
preserve case = yes
short preserve case = no
default case = lower
case sensitive = no
map to guest = bad user

#Example of a public share avalidable to anyone with read only permisions

[Peliculas]
comment = Peliculas
path = /mnt/80gb/Peliculas
public = yes
writable = no
browseable = yes
guest ok = yes



3. Third you need to set the permisions of the shared directory so that the windows clients can read the shared stuff, this 2 command lines will to that

chown -R root:root /mnt/80gb
chmod -R 755 /mnt/80gb



4. After all is done just start samba and try it

/sbin/service smb start

in some distributions the start command is

/etc/init.d/service smb start

And with a little luck you have your samba server up and running, you can see the shares with the following command

# where Server is the name you asigned in "Netbios name"

smbclient -L //Server

Last edited by landuchi; 12-02-2006 at 12:22 PM.
 
  


Reply

Tags
samba windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file sharing clients needed ankscorek Linux - Software 5 04-05-2005 11:39 PM
Sharing the samba share with windows clients vignesh2004 LinuxQuestions.org Member Intro 0 06-18-2004 05:14 AM
File-Sharing clients LinuxSeeker Linux - Software 13 04-26-2004 05:28 AM
File Sharing Linux SBM server -> Windows XP Clients xannix Linux - Networking 2 08-21-2003 05:44 PM
File sharing between RH8 Server and XP clients Evilone Linux - Software 2 01-31-2003 09:49 AM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration