Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make user account under Samba

Status
Not open for further replies.

Johnthom

Technical User
Aug 23, 2001
45
VN
Hi all,

I have just installed Samba program in my computer, and I share a directory for everyone to use it, but then I 'd like set up a little more secure. It means only people having Linux accounts can use this shared directory. I tried a lot of ways but cannot do that.

The following is my smb.conf file:

#===========================================
[global]
workgroup = my-net
netbios name = Server-RedHat
server string = server Red Hat Linux
log file = /var/log/samba/%m.log
max log size = 0
security = share
encrypt passwords = yes
#======== Share Definitions ============
[Soft-store]
comment = My server Directories
public = yes
browseable = yes
writable = yes
path = /softwares-test
comment = softwares
guest ok = yes
[CDROM]
comment = CDROM of Linux computer
public = true
browseable = yes
writable = yes
path = /mnt/cdrom
guest ok = yes
#========the end============

For example, I have a Linux account ( username: test, password: test ). Please add statements into my smb.conf file in order to share directory "/softwares-test" to people having account "test" mentioned above.

Any help would be apprecited.

John Thom


 
HI

#======== Share Definitions ============
[Soft-store]
comment = My server Directories
browseable = yes
create mode = 777
directory mode = 777
domain master = no
guest ok = no
local master = no
path = /softwares-test
preferred master = no
public = no
security = share
socket options = TCP_NODELAY
workgroup = myWorkGroupName
writable = yes
write list = myUser1, myUser2, test, myuser3 .. etc users

This shall see you thru...

Also create users in Linux unit which match the write list above.. For this you can use USERCONF at # or use the GUI.

Hope this helps you :) ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Hi,

Just an observation on the above - the statements :

domain master = no
local master = no
preferred master = no
security = share
socket options = TCP_NODELAY
workgroup = myWorkGroupName

are global statements for the server and you wouldn't put them in a share definition - they go in the [global] part of smb.conf . Also, to achieve a reasonable level of security, you would also need to set :

security = user

In addition, to configure / synchronise passwords using smbpasswd see --> .

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top