LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-04-2007, 12:01 AM   #1
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Rep: Reputation: 15
Question open files and restricted files on the same Samba server


I currently trying to setup a simple home file server using Debain etch. On the server I want two shares. One share (the 'Open' share) will me the main file dump for every computer on the network, with no logins or passwords required. The second 'Restricted' share would require a login and password.

Having the restricted share as just a sub folder of the open share would be nice if possible.

Samba seems to take an all or nothing approach to its shares.

So, how do I set this up?
 
Old 12-04-2007, 12:50 AM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
GOod question. I think SAMBA uses the most restrictive settings. So under your global setting, try to use security = share

Then under the private folder that you want with username/password, use the security = user setting. Will that work? I'm just throwing it out there as I've never tried it like this.
 
Old 12-04-2007, 11:07 PM   #3
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
well, Just tried that, and it almost worked. I access the open share just fine (the default directory is /server/share), no login needed. When I click the Restricted folder (/server/share/restricted/) I get a login prompt. However, the user name field is locked (grayed out) and set for guest, all i can enter is a password which doesn't work because guest has no password. Also leaving the password field blank doesn't work either.

I'm guessing what happens is that the moment I access the open share I get logged in as guest and samba wont allow me to log in as another user while I'm logged in as guest.

There must be some simple way of doing this?
I refuse to believe that I am the first to want some files open and some secure.
 
Old 12-05-2007, 11:25 PM   #4
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
Basically all I want is just a NAS with a password protected folder.
 
  


Reply

Tags
debian, samba, share


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
Files restricted to only root user Peter_APIIT Mandriva 18 03-25-2007 03:03 PM
Cannot open files, Samba Missing_QuarK Linux - Networking 4 12-18-2006 09:20 AM
SAMBA server status of open files error LinuxRam Linux - Networking 0 09-10-2004 05:52 AM
Samba domain server 95/98 cannot open files cstuff Linux - Networking 2 08-03-2004 02:22 PM
Editing restricted files ebakunin Linux - Newbie 6 06-04-2002 12:49 PM


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