Fedora Linux Support Community & Resources Center
  #1  
Old 17th March 2012, 02:33 PM
sunnysthakur Offline
Registered User
 
Join Date: Mar 2012
Location: India
Posts: 6
windows_xp_2003firefox
How to Secure the passwordless share using samba

Hello,

I have created a pass wordless share using samba on which i have placed the daily uses s/w for teams. I have assigned rw permissions to all so that if other teams want to copy the useful s/w on this share.

Now the problem is this that some users are start putting their data[Personal, Backup] on this share.

Can this be possible that users can not copy the data on this passwordless share but admin can do.

Thanks,
Sunny
MIT, RHCE
System Administrator [Open Source Technologies]
Reply With Quote
  #2  
Old 17th March 2012, 03:43 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,870
linuxfirefox
Re: How to Secure the passwordless share using samba

Put a password on it and do not export it to everyone.
Reply With Quote
  #3  
Old 19th March 2012, 11:02 AM
sunnysthakur Offline
Registered User
 
Join Date: Mar 2012
Location: India
Posts: 6
windows_xp_2003firefox
Re: How to Secure the passwordless share using samba

Thanks pollard,

This is a fileserver which is open for all the team members and we keep its access as public [Passwordless].

Is there any other method for this scenario that user can access the share without password but can't write and admin can write on the same.
__________________
Thanks,
Sunny
MIT, RHCE
System Administrator [Open Source Technologies]
Reply With Quote
  #4  
Old 19th March 2012, 12:46 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,402
windows_7firefox
Re: How to Secure the passwordless share using samba

Easy. Delete their data and flog whoever complains.
Reply With Quote
  #5  
Old 19th March 2012, 02:44 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,330
linuxfirefox
Re: How to Secure the passwordless share using samba

well, there could be a way to export it read only for everyone, but for read/write access it requires a password.

what happens if you put in your smb.conf file the following where you have the share defined?

read list = users
write list = adminuser

You can specify groups (like the wheel group in fedora) by using a + eg: +wheel

There was an example of this provided in the default smb.conf file in Fedora as well...

Code:
# A publicly accessible directory that is read only, except for users in the
# "staff" group (which have write permissions):
;	[public]
;	comment = Public Stuff
;	path = /home/samba
;	public = yes
;	writable = yes
;	printable = no
;	write list = +staff


---------- Post added at 08:44 AM ---------- Previous post was at 08:34 AM ----------

Edit:

I seem to recall reading someplace that if you specify the guest ok option, then it pretty much over-rides the write-list and allows guest access r/w access as well. I am trying to find where I saw that to make certain of it, though.
Reply With Quote
  #6  
Old 19th March 2012, 05:46 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: How to Secure the passwordless share using samba

Another option is to create two different shares to the directory, one is read-only the other is restricted to admin users.
__________________
======
Doug G
======
Reply With Quote
  #7  
Old 19th March 2012, 06:04 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,402
linuxfirefox
Re: How to Secure the passwordless share using samba

Ok. I'll guess why: look, your 'home' version of Winblows just does not support domain logins. You won't have any real security without a login so just write a batchfile something like "net use ABC \\AA:BBCD\XYZ /user:WhoEverRepresentsGroup /persistent:no".


Quote:
Thanks,
Sunny
MIT, RHCE
System Administrator [Open Source Technologies]
What's that?
Reply With Quote
  #8  
Old 22nd March 2012, 10:07 AM
sunnysthakur Offline
Registered User
 
Join Date: Mar 2012
Location: India
Posts: 6
windows_xp_2003firefox
Re: How to Secure the passwordless share using samba

Hi belton,

i will go through your conf and revert backup to you.

Thanks all for your suggestions.

---------- Post added at 02:37 PM ---------- Previous post was at 02:34 PM ----------

Hi Douge,

But this is a common s/w repo for all the users. Near about 200 users are accessing this share for pick the s/w for their need.

Do you think 2 share one for admin and one for user is fine for this scenario.
__________________
Thanks,
Sunny
MIT, RHCE
System Administrator [Open Source Technologies]
Reply With Quote
  #9  
Old 25th March 2012, 01:25 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
linuxfirefox
Re: How to Secure the passwordless share using samba

Quote:
Do you think 2 share one for admin and one for user is fine for this scenario.
It's what I'd do. One share is set up as read-only, that's the share all the users access without a password. A 2nd share (pointing to the same directories) is set up as read-write and requires an admin user and password.

I don't have hundreds of users, just a few, but this is what I do on a shared music library for my family members and it works fine, the listeners can't mess up the files.
__________________
======
Doug G
======

Last edited by Doug G; 25th March 2012 at 01:29 AM.
Reply With Quote
  #10  
Old 2nd April 2012, 01:48 PM
sunnysthakur Offline
Registered User
 
Join Date: Mar 2012
Location: India
Posts: 6
windows_xp_2003firefox
Re: How to Secure the passwordless share using samba

Hi Doug

Thanks for your solution. This worked for me...
__________________
Thanks,
Sunny
MIT, RHCE
System Administrator [Open Source Technologies]
Reply With Quote
Reply

Tags
passwordless, samba, secure, share

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Share Arkiados Servers & Networking 2 19th January 2011 11:37 PM
Need to share DVD ROM using samba salex Servers & Networking 0 10th May 2010 08:44 PM
Samba: Can't see share mcouture87 Servers & Networking 9 16th January 2006 04:28 PM
CD-ROM Samba Share aaronro Servers & Networking 1 19th October 2005 04:52 PM
FC2 and samba share mnguyen EOL (End Of Life) Versions 2 21st September 2004 12:15 PM


Current GMT-time: 23:46 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Takaoka Photos - Hanamaki Travel Photos on Instagram - Senador Pompeu Instagram Photos