LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-04-2006, 12:10 PM   #1
TomalakBORG
Member
 
Registered: Dec 2004
Posts: 245

Rep: Reputation: 30
samba anonymous logins?


Hello -

I would like to be able to login using no username and no password to my samba share, and have it work. If it could, I would like this anonymous user have the same rights as anyone in group 'users'. My smb.conf file will be attatched. How would I go about doing this?

-Bill

Code:
## Share disabled by YaST
# [netlogon]
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-11-11
[global]
include = /etc/samba/dhcp.conf
domain master = no
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
restrict anonymous = no
max protocol = NT
ldap ssl = No
server signing = Auto
encrypt password = yes
smb passwd file = /etc/smbpasswd
update encrypted = yes
null passwords = yes
preferred master = no
server string =

[filevault]
path = /media/filevault
case sensitive = no
guest ok = yes
write list = tux,root
directory mask = 750
create mask = 640
msdfs proxy = no
valid users = tux,root,@users
hide dot files = no
fstype = EXT2
 
Old 02-04-2006, 03:23 PM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
you need to use 'guest = ok'

and also there is a parameter to map guest uses to a user of your choice (who you could put in the users group of course). might be something like 'map to guest =' or 'bad users='

it definately explains this in the o'reilly book (electronic version) that comes with samba.....
 
Old 02-10-2006, 06:52 PM   #3
TomalakBORG
Member
 
Registered: Dec 2004
Posts: 245

Original Poster
Rep: Reputation: 30
Agreed with the guest = ok, only I've hit a snag. My guest account will be 'ftp' belonging to group 'users' -- this is fine, all I want is for null logins to be mapped to ftp, which will have all the rights of any user in group 'users'.
in [global] I added:
guest account = ftp
map to guest = Bad User # this is so when an invalid login name is passed, it directs to the guest account

in [filevault] (my share) I added:
guest ok = yes

Here's the problem. Like that, windows/linux never prompts for username/password and always logs in as guest (which by the way works right, i.e., has the correct rights and such). What could I be doing wrong?

Last edited by TomalakBORG; 02-10-2006 at 06:56 PM.
 
Old 02-11-2006, 01:43 PM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
did you look at the book i mentioned?

i've never wanted to do that. so i can't say from personal experience.

i hope you can work it out! sorry....
 
  


Reply



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
Multiple logins from XP to Samba jbraum Linux - Networking 2 10-28-2005 10:35 AM
Samba Logins from XP edlentz Linux - Networking 2 04-20-2005 09:13 PM
Proftpd and anonymous logins Wynd Linux - Software 5 11-12-2003 10:05 PM
Samba Domain Logins WeNdeL Linux - Software 0 02-26-2003 08:44 AM
Trouble with Proftpd and anonymous logins on Mandrake 9 carlmenezes Linux - Software 6 02-25-2003 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:05 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
Open Source Consulting | Domain Registration