LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-13-2011, 04:03 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Rep: Reputation: 17
how to share a folder in samba with no need of user password with write permission


hello
I would like to know how can I share a folder in samba with no need of user and password with write permission, with no need of using guest user.

thanks.
 
Old 06-13-2011, 10:39 PM   #2
Rearden888
LQ Newbie
 
Registered: Jan 2010
Location: Anacortes, WA
Distribution: Crunchbang, Debian, Gentoo
Posts: 24
Blog Entries: 2

Rep: Reputation: 3
I have a home file server set up this way. In the smb.conf file make sure you have the
Code:
# security = user
commented out.

Also, when you define your shares:
Code:
[1tb]
    comment = 1tb
    read only = no
    locking = no
    path = /media/1tb
    guest ok = yes
Then make sure you run chmod a+w to the path.

Keep in mind, this is incredibly insecure and really only appropriate in a very small, contained network, if even then really. You're basically letting anyone who can connect to the network have write access to that share. I only do it this way in order to make things easier for my wife, and I keep very good backups of everything in that folder
 
Old 06-14-2011, 01:33 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Original Poster
Rep: Reputation: 17
it does not work.this is what I did:
Quote:

[global]
workgroup = workgroup-DOMAIN
netbios name = workgroup
server string = workgroup File Server
enable privileges = yes
interfaces = lo,eth0,tap0
bind interfaces only = Yes
passdb backend = ldapsam:ldapi://%2fvar%2frun%2fslapd%2fldapi
ldap ssl = Off
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
vfs objects = full_audit
full_audit:success = connect opendir open disconnect unlink mkdir rmdir rename
full_audit:failure = none
smb ports = 137 138 139 445
name resolve order = wins bcast hosts
time server = Yes
printcap name = CUPS
wins support = Yes
dns proxy = Yes
ldap suffix = dc=RAAD,dc=raad,dc=com
ldap machine suffix = ou=Computers
ldap user suffix = ou=Users
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap admin dn = cn=ebox,dc=RAAD,dc=raad,dc=com
map acl inherit = Yes
printing = cups
security = user

[nopass]
comment = nopass
path = /home/samba/shares/nopass
browseable = Yes
locking = no
guest ok = yes
force create mode = 0777
force directory mode = 0777
vfs objects = full_audit recycle
recycle: versions = Yes
recycle: repository = /home/.Recycles/%U/%I_%S_%T_RecycleBin
recycle: keeptree = Yes
recycle: excludedir = /tmp|/var/tmp
recycle: directory_mode = 0700

but it does not let me use it it wants user and pass from me .

what is wrong ?
 
Old 06-15-2011, 08:09 PM   #4
Rearden888
LQ Newbie
 
Registered: Jan 2010
Location: Anacortes, WA
Distribution: Crunchbang, Debian, Gentoo
Posts: 24
Blog Entries: 2

Rep: Reputation: 3
You have to comment out the security = user line.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba folder permission with AD User (Windows 2008 Server) satish.aiwale Linux - Newbie 2 03-29-2011 09:17 AM
Secondary group member can't write on samba share if they have full permission krishnakant Linux - Server 11 06-23-2009 03:29 PM
share directory with samba domain user permission neo571 Linux - Networking 4 12-02-2008 05:37 AM
Samba - permission problem on multiple user share timmywo Linux - Software 1 08-06-2005 05:30 PM
Samba Share Write permission Issues Colossus610 Linux - Software 4 08-12-2004 05:20 PM


All times are GMT -5. The time now is 07:26 AM.

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