LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-21-2007, 09:04 AM   #1
mwcal
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
samba users


We are using Red Hat linux and are trying to set up samba shares that are restricted to certain users. I do not understand how to set up the users. Are users the computer name or something else? When I access the sharee now it asks for a password. How does this password get set or changed? Any help would be appreciatied!
Thanks
 
Old 06-21-2007, 09:47 AM   #2
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Rep: Reputation: 15
Hi man ....
At first You have to edit the /etc/samba/smb.conf, there is section called global that has the global options for your share, then create a section for your share like:
[share]
path=/share -> the folder you want to share
writable=yes or no -> depends if you want someone to edit or not
browsable=yes
public=no

now save and exit.

Now you have to set the users for the samab, first they must be exist on the /etc/passwd, if they:
smbpasswd -a username -> to create a samba password for the user

Dont forget to restart the smb service and to change the permission of the folder if denied writing to it.

You can test by
smbclient \\localhost\<sharename> -U username

For more information:
http://www.linuxhomenetworking.com/w...nux,_and_Samba
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Active directory users to Samba users alexpacio Linux - Networking 0 05-19-2006 08:44 AM
I can't add users to "samba users" in control center g_jakes Linux - Security 3 05-20-2005 02:10 PM
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 01:28 PM
can't add users to "samba users" in control center g_jakes Linux - Wireless Networking 1 05-20-2005 01:27 PM
samba users PlatinumRik Linux - Networking 15 05-23-2003 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration