Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-08-2007, 08:08 PM   #1
LQ Newbie
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Suse 10.2 looking to add security to my share folder need help please

Hello all,

I'm currently working with a suse 10.2 box and I have been able to share a media folder with the win boxes on my network. I'g like to setup password protection for this folder but am having a hard time doing it. I'm wondering if you csn specify a user and password in smb.config? Any help provided would be much appreciated Here is a pate of my current smb.config:

workgroup = ESGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = No
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
passdb backend = smbpasswd
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

## Share disabled by YaST
# [netlogon]

comment = Media Archive
guest ok = Yes
inherit acls = No
path = /media/Data/cool media/
read only = Yes
force user = fabio
Old 03-10-2007, 11:39 AM   #2
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
how about using smbpasswd?? That'll ask you for a username/password. Only users who are authenticated can connect to it. add the valid users option

comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
If you want to go more extreme, then I suppose you could use something like Truecrypt to encrypt the contents, and then share the *.tc file which would require the clients to have Truecrypt and the password. I think that is overkill

Last edited by Micro420; 03-10-2007 at 11:42 AM.


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
share folder vkmgeek Linux - General 5 09-02-2006 08:38 AM
Suse 10 smb asking for password when security = share therapist Linux - Networking 5 05-19-2006 05:52 AM
share a folder Alan87i Fedora 8 10-15-2005 05:47 PM
Cant add folder into my shared folder? amer_58 Linux - Newbie 2 04-03-2005 12:35 PM
kdevelop add folder and add new class is slow edwardt Programming 0 03-03-2004 07:04 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration