LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 09-14-2003, 10:40 PM   #1
BlandoCal
Member
 
Registered: Sep 2003
Location: Ames, IA
Distribution: Fedora Core 3
Posts: 92

Rep: Reputation: 15
Angry Samba Configuration


I have been trying to configure my samba server for the past month and I am about to scream.

I would like to configure it so that people on my local network can access my shares w/out entering passwords (or possibly just saving the password). Everyone else on my network (4 other computers) are running Windows XP. I would also like to share my printer. Bascially I don't need/want any fancy options, I just want it setup basically like network neighbor hood on windoze.....oops miss spelling

if possibly someone could just post a dummy smb.conf file that i could almost copy word for word they would be the "dude" in my book. I would like to use a SHARE level security and not have to make users for every user (if possible).

any help would be awesome....thanx very much
 
Old 09-14-2003, 10:49 PM   #2
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 328

Rep: Reputation: 31
So have you managed to start the server in the first place? Or does the server croak with a wrong config file option or so?

If it's up, do (on the linux server itself)

smbclient -L <ip of the server>

and post it. There's a good number of posts about the config file, some from yours truly, did you look them up?

mlp
 
Old 09-14-2003, 11:39 PM   #3
BlandoCal
Member
 
Registered: Sep 2003
Location: Ames, IA
Distribution: Fedora Core 3
Posts: 92

Original Poster
Rep: Reputation: 15
yea I got it running, and I can see it in Network Neighborhood on the XP computers, when I try connecting I get an error message about permissions and something about another user w/ same name, but I know there is no user w/ the same name......(at least not that I know of)

here's what i got when I did that command

added interface ip=192.168.0.155 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix]

Sharename Type Comment
--------- ---- -------
public Disk
Music Disk
Stuff Disk
Misc Disk
IPC$ IPC IPC Service (blando)
ADMIN$ Disk IPC Service (blando)

Server Comment
--------- -------
DUMB-MEXICAN <= roomates computer (haha)
LOCALHOST blando

Workgroup Master
--------- -------
MSHOME DUMB-MEXICAN

I'll look up some of your posts and see what I can find, thanks..
 
Old 09-15-2003, 05:28 AM   #4
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
These documents are quite good. I have used them to set up Samba several times. Start with the one by IBM. Note that XP needs a few extra steps to join a Samba 2.x domain. See the section on client configuration.

http://www-1.ibm.com/servers/esdd/tu...mba/index.html


http://networking.earthweb.com/netos...le.php/1144701

http://networking.earthweb.com/netos...le.php/1151091


Remember to include the

domain logons = yes

command in your smb.conf file. This is required for Windows 2000/XP logons even though the literature suggests otherwise.
 
Old 09-15-2003, 07:00 AM   #5
tekquest
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
Can you advise the Linux package your running your samba server on? I am keen to get mine working, but maybe I need a fresh approach.

Its currently running on an ASP linux machine, (installed with the initial setup packages), the services start, and the default user is setup in the KDE control module (my username, password and domain) but when I try to access it from a Windows 2k machine, it askes for the username and password.

On a Windows 98se machine, no questions, logs in, but only shows an unknown or inaccessable directory called "test".

I have looked through many documents pertaining to setting up a Samba server, but I haven't found one that says "start by installing your linux OS, e.g. RH 7.2, downloading the RPM package for samba, installing it etc)

Thanks :-)
 
Old 09-16-2003, 05:15 PM   #6
BlandoCal
Member
 
Registered: Sep 2003
Location: Ames, IA
Distribution: Fedora Core 3
Posts: 92

Original Poster
Rep: Reputation: 15
I got it to work, here's what I did incase anyone in the future wants to know. This is my smb.conf file (/etc/samba/smb.conf) and I have it set up so Windows XP can access it without a password, and they all are mapped to use the guest account of sambaguest.


[global]

log file = /var/log/samba/%m.log
guest account = sambaguest
preserve case = no
guest ok = yes
map to guest = sambaguest
domain master = no
encrypt passwords = yes
hosts allow = 192.168.
netbios name = blando
server string = Linux
local master = no
workgroup = MSHOME
os level = 20
security = share
create mode = 666
preferred master = no
directory mode = 777
domain logons = yes
printcap name = lpstat
printing = cups

[printers]

browseable = no
comment = All Printers
writeable = no
path = /var/spool/samba
public = yes
printable = yes
guest ok = yes
print command = lpr -P %p -o raw %s -r

[public]

path = /home/blando
guest ok = yes
writeable = no
browseable = yes
printable = no
public = yes

[Mounts]

path = /mnt
guest ok = yes
writeable = yes
browseable = yes
printable = no
public = yes

The only problem I'm having now is allowing the Windows computers to print to my printer (its a Compaq IJ600, although for Linux to recognize it I had to install it as a Lexmark Z22 (it's basically a re-Branded printer). I still haven't done much investigating into the printing problem yet, so I'm not sure what the problem is....

Last edited by BlandoCal; 09-16-2003 at 05:18 PM.
 
Old 09-16-2003, 07:31 PM   #7
tekquest
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
What linux os are you running? does your system have X configured?

In your samba client configuration (on the linux pc) what is the username / password?

Are you using your samba server as a PDC??? does the "Domain master = no" mean that is not?

When you say the user is "sambaguest" is this an account on your windows xp machine? or does it just.. "work" :-)

Your share name, /home/blando, is this just a directory on your samba pc that is not shared by ANY other app in linux?

Thanks :-) appreciate your reply and info :-)
 
Old 09-16-2003, 09:36 PM   #8
BlandoCal
Member
 
Registered: Sep 2003
Location: Ames, IA
Distribution: Fedora Core 3
Posts: 92

Original Poster
Rep: Reputation: 15
tekquest,

I'm running Redhat 9, and yes I have X configured and I'm running it.
I don't have any samba users made. Basically I created a user for the linuxbox called sambaguest, I chose /sbin/nologin when i set up the user so that it wouldn't be used as a "user" exactly. And i set up the home directory for that user as / (you can add or modify users from system settings then users and groups)

the sambaguest account is not an account on the windows machine, it just basically works ;-)
I believe the way it works is that if a user that trys to login is not recognized (in my case every user) it then calls them a 'guest', and then i have the part that says "map to guest = sambaguest" and "guest account = sambaguest" (not sure which one of these does what or even if they are both needed, i'm just happy that it finally works)
my share directory is just my home directory, not sure what you mean by it being shared by other applications - i have other directories shared too, such as I have another Hard drive on my computer that i have mounted and shared here's what it looks like (i just didn't add it to the post above for spaces reasons.)

[Others]

path = /mnt/Others
guest ok = yes
browseable = yes
printable = no


anymore Q's just ask
 
Old 09-17-2003, 12:39 AM   #9
tekquest
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
Thanks mate, I will give it all a try tonight and report back :-)
 
Old 09-17-2003, 11:04 PM   #10
montybass
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
I hate guest accounts, as theymake your setup less secure. If you're certain your network is secure, and you don't want to mess with passwords and such, you could use a config such as this:

[global]
workgroup = WORKGROUP
netbios name = Server
server string = Samba server
interfaces = eth0 10.0.0.
socket address = 10.0.0.
security = share
socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY
bind interfaces only = true
deadtime = 5

[full]
comment = all
path = /
hosts allow = 10.0.0.
writeable = yes
guest ok = yes
guest account = nobody
admin users = nobody


That would give anyone who connected to the server full access to any files on the Linux box.


http://us1.samba.org/samba/docs/using_samba/toc.html

http://hr.uoregon.edu/davidrl/samba-...al-single.html
 
Old 10-29-2008, 03:31 PM   #11
katkota
Member
 
Registered: Jan 2008
Posts: 33

Rep: Reputation: 15
Folks;
I know this might sounds stupid, but please help with this:

I have share in my smb.conf on my SUSE 10 box.

How can i make this share accessible to outside IP range or a specific IP address without need for user/pass?

Here's the share as it's written in smb.conf:

;[xyz]
;comment = Filesystem Gate
;writable = yes
;browseable = yes
;public = yes
;path = /xyz

include = /etc/samba/includes/cifs-share.inc


and here's cifs-share.inc:

[share1]
writable = no
path = /xyz/share1
valid users = katkota
write list = katkota
force user = user1
force group = nogroup
browseable = no
public = no
printable = no
security mask = 0777
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA configuration nawin_g Linux - Networking 9 11-08-2005 03:23 PM
Samba Configuration randy1970 Linux - Newbie 5 07-24-2005 09:22 AM
Samba configuration Mingthefirst Linux - Software 1 09-05-2004 11:04 PM
Samba configuration littlegreenman Linux - Networking 14 09-10-2003 11:55 AM
Need your help on SAMBA configuration vwhk Linux - Software 4 01-14-2002 06:12 AM


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

Main Menu
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