LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2009, 09:01 AM   #1
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
samba withour username and password


Hi
i am trying t set up my ubuntu samba server for users to login with out a username and password for a folder but i keep getting errors this is the config for the folder
[global]
; General server settings
netbios name = LON-TI-OFF-01
server string = %h server
workgroup = LON-TI-OFF
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

passdb backend = tdbsam
security = SHARE
null passwords = true
#username map = /etc/samba/smbusers
name resolve order = hosts wins bcast

wins support = yes

printing = CUPS
printcap name = CUPS

syslog = 1
syslog only = yes

[images]
path = /home/images
browseable = yes
read only = no
writeable = yes
guest ok = yes
create mask = 0777
directory mask = 0777
force group = users
public = yes
 
Old 03-03-2009, 09:41 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
What are the errors you are getting? I would also suggest setting "security" to "guest".
 
Old 03-04-2009, 06:00 AM   #3
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Rep: Reputation: 30
I think you may also have to add the following line to your /etc/samba/smb.conf file :

Code:
map to guest = Bad User
I tried this on my own smb.conf and it allowed guest access from my XP box without requesting a password.

UC
 
Old 03-05-2009, 03:35 AM   #4
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Original Poster
Rep: Reputation: 30
ok thanks it works without asking for a password but it changes the permissions to nobody and doesnt allow access to the file
for anyone even the creator of the file
 
Old 03-05-2009, 04:21 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Using anonymouse share level security with write access means guest (nobody) access. The user is aliased to the guest user. Check the permissions on the directory you are sharing. The permissions should be the same as the /tmp directory. (e.g. chmod ugo=rwxt <directory>)

Is this in a home or work environment? If it is in a work environment, don't use share level security and don't configure passwordless access.
Check if Ubuntu has the samba-doc package with supplies the books "Samba 3 by Example" and "Samba 3 HOWTO & Reference Guide". Administering a corporate network isn't easy in Linux or Windows. IMHO, passwordless share level security in a corporate environment is dangerous.
 
Old 03-05-2009, 05:30 AM   #6
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Original Poster
Rep: Reputation: 30
its a work enviroment but the folder is for everyone to keep stuff and remove stuff that is how my boss wants it for now
so should i remove the
[global]
; General server settings
netbios name = LON-TI-OFF-01
server string = %h server
workgroup = LON-TI-OFF
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = SHARE
null passwords = true
name resolve order = hosts wins bcast
usershare allow guests = Yes
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes

[images]
path = /home/images
browseable = yes
read only = no
guest ok = yes
writeable = yes
create mask = 0777
directory mask = 0777
force group = users
public = yes
this is how the config is now what should i remove or add to make it fully accessible to all to remove and add files even if they dont belong to the user.
 
  


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
username and password prompt: samba configuration caesarkim Linux - Networking 4 05-21-2009 09:13 AM
Samba without username and password MarioT Linux - Networking 4 02-27-2006 02:53 AM
Samba access without unix username/password? mdkelly069 Linux - Networking 0 09-13-2004 05:05 PM
Samba username and password downinthemine Linux - Networking 2 01-10-2004 08:01 AM
Username and Password accessing samba? Sir.Del Linux - Networking 14 12-24-2001 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:58 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