LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-10-2003, 04:44 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Samba...AGAIN!!


Ok, really quick question here.
If i wanted to setup a share on a samba server that would be accessible by everyone on my network, I know how to do that.

My question is, how do I set it up so my users can navigate to the samba share through network neighrboorhood and NOT be prompted with a username and password?

As it is now, they can click on the share and a username and password box pops up. All you have to do is click on cancel and it lets them into the share. I do not want the username and password box to pop up.

How do I make this work?

Thanks everyone.

Tarballed
 
Old 04-10-2003, 04:50 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Try adding:
public = yes
 
Old 04-10-2003, 04:56 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Hey david_ross....your back?

Your script for me was invaluable. I learned a ton!!! Thank you so much.

I did try setting it to public = yes.
I thought that would do it, but so far, it still prompts for a username and password. Here is my snip from smb.conf:

Code:
[Samba1]
    comment = Samba1
;    valid users = admin
    path = /samba1
    public = yes
    writable = yes
Any ideas?

Thanks again!

Tarballed
 
Old 04-10-2003, 05:35 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
lol

I posted this ages ago and wondered why you never replied - I put it in the wrong thread.

mmm - took me a while but a few tests suggest that you are using "security = user". Am I right?

I think you need to add the line:
map to guest = bad user

To your global config.
 
Old 04-10-2003, 05:49 PM   #5
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Yep, you are right.
Quote:
"security = user". Am I right?
Do I just add the suggested line in the same space and all is well?

Thanks david_ross
 
Old 04-10-2003, 05:53 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just put
map to guest = bad user
below
security = user

eg
Code:
security = user
map to guest = bad user
 
Old 04-10-2003, 06:04 PM   #7
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Perfect!

Once more, you come through again.

Thanks again david_ross. You are a life save.

Tarballed
 
Old 04-10-2003, 06:16 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Cool

Good luck with perl - I find it a very user friendly and scalable to almost all projects I encounter both web based and for system maintainance. It is one language that definately takes after it's name "Practical Extraction and Report Language"
 
Old 04-10-2003, 09:02 PM   #9
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Interesting...

david_ross, please explain what this command does and where the bad user part comes in. It looks quite useful.

Thanks.
 
Old 04-11-2003, 03:25 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The "map to guest" variable controls what happens when a bad (non valid) login username or password is given.

ie your windows computer will automatically supply the credentials that you logged in with before prompting you. (This is in my mind is a pretty major security flaw) If samba is set to make you a guest if your login is wrong it will still give you access to the resources that have public access.

Take a look at "man smb.conf" then do a search for "map to guest". This feature is only valid when you are not using "security = share".
 
Old 04-11-2003, 03:30 PM   #11
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Good stuff to know. I plan on investing in a Samba book here soon. My manager wants me to setup Samba running as a PDC with LDAP installed as well.

Should be very interesting and challenging. I will need to pull out all my bags of tricks.

Thanks again for your help.

Tarballed
 
Old 04-11-2003, 03:48 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I'll keep an eye on this thread - I am about to do something similar at work too. We are going to use samba servers for data backup and network/internet authentication. We have developed a simple solution using ipchains to block users that aren't authenticated. There is an option (still in its infancy as far as I know) that lets you run a command on the server as well as a login script on the client. I am hoping to use this along side other login methods of web based frontends and telnet to make it easier for the users.
 
Old 04-11-2003, 05:43 PM   #13
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Cool. I'd definetly like to bounce some questions here once I start rolling our the server.

I will let you know how it goes.

Tarballed
 
Old 04-11-2003, 09:45 PM   #14
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Thanks.
 
Old 04-24-2003, 04:14 PM   #15
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Ok. Question on something I was working with today.

If I create a share on my samba server, and want the contents in the share to only be readable, that would seem to be pretty easy, right?

(I should mention that I have setup guest access to this share, for testing purposes.)

For example, I created a share called filetest. I put a file inside the share called filetest. I set the permissions to 755 on both the directory and the file. nobody.nobody is the owner and group.

Now, if I manually navigate to the directory with my wordprocessor, I can open up the file, edit the file and save the file. This is what I do not want.

Here is my smb.conf for this share:

Code:
[lockfile]
    comment = LockFile
    path = /samba1/lockfile
    public = yes
    writable = yes
I realize that I set it to writeable, but shouldn't I be able to make it no writable through permissions?

Anyone care to comment on this? Feel free to put your recommendations as well.

Thanks.

Tarballed
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 02:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 10:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 06:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 02:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration