Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-12-2002, 09:44 AM
|
#1
|
Member
Registered: Jun 2001
Distribution: Red Hat
Posts: 33
Rep:
|
Samba passwords
Hi All,
Can anyone tell me how to use password authentication with Samba and Windows... without the Windows client logging into a domain??. Ive got it going and have 2 public folders and 1 "private" folder. The smb.conf reads as follows:
[Private]
comment = Admin
path = /vol/samba/private
valid users = john
browsable = Yes
public = No
writable = Yes
create mode = 0700
(Ive created the dir and used the command : chown smbuser:smb /vol/samba/private... as I did with the public folders)
Now I get a login and password pop-up menu when trying to access the folder from my XP machine, but the user is "guest" by default and unchangeble. Actually my problem is not understanding where the problem lies.... in networking (not logging on)?, the smb.conf?, or the password itself?..... Can someone please shine some light?
|
|
|
08-12-2002, 09:59 AM
|
#2
|
Member
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371
Rep:
|
Samba runs as root, so changing the user is not necessary when the share is authenticated. Only 'guest' access is mapped to a special user (possibly 'samba' in your case).
[private]
path = /vol/samba/private
valid users = john
Private should be readable and writable by user 'john', and samba will create and manipulate files as if it were 'john'.
Do you authenticate though smbpassword? Is 'john' both a UNIX user and also a user in 'smbpasswd'?
Finally, make sure that if your client is expecting encrypted password access that samba has encryption enabled (see docs for the [global] section.
Thank you,
Gary Allen Vollink
|
|
|
08-13-2002, 04:33 AM
|
#3
|
Member
Registered: Jun 2001
Distribution: Red Hat
Posts: 33
Original Poster
Rep:
|
Ok.. Ive chown"ed" my private dir to "john" and used "smbpasswd -a john" to create the password. Encryption is on... Actually heres a copy of my smb.conf:
-------------------------------------------------------------
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = FIDO
# server string is the equivalent of the NT Description field
server string = FIDO Samba Server
hosts allow = 10.1.1.1 10.1.1.10 127.
interfaces = 10.1.1.1/24 127.0.0.1/24
bind interfaces only = Yes
security = SHARE
encrypt passwords = Yes
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/log.%m
max log size = 50
read bmpx = No
time server = Yes
os level = 65
preferred master = Yes
dns proxy = No
wins support = Yes
guest account = smbuser
hide dot files = No
printcap name = /etc/printcap
load printers = yes
printing = lprng
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
printable = yes
[Public]
comment = Shared Directory
path = /home/public
read only = No
create mask = 0664
directory mask = 0775
guest ok = Yes
[Data]
comment = Software
path = /vol/samba/data
read only = No
create mask = 0660
directory mask = 0770
guest ok = Yes
[Private]
comment = Administrator
path = /vol/samba/private
valid users = john
browsable = Yes
public = No
writable = Yes
create mode = 0700
----------------------------------------------------------------
Can anybody see something missing or out of place?
After the changes - I still get a login box (on my XP machine) with no abitlity to change the username (ie: fido/guest) but I can type in a password (ie: [smbpaswd -a john] ....that obviosly doesnt work).....
|
|
|
08-13-2002, 11:28 PM
|
#4
|
LQ Newbie
Registered: Jul 2002
Posts: 11
Rep:
|
Just play around with
[global]
..
security = SHARE / user / server
make sure, the user logged in , is using same username passwd, which you added by smbpasswd.
sudheer.
|
|
|
All times are GMT -5. The time now is 01:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|