View Full Version : samba server asking for password
drews project
18th May 2004, 03:20 PM
i have recently installed fedora 1 on an old computer. the installation was sucessful so i installed webmin to make it easier to manage. i set up the samba server on it but i am not able to log into it at all. i know i need to create a user or something for it but im not sure how to do that. and once i do that i still would like to take the passwords off for the internal network so people dont have to log in everytime they want to save something.
linuxzouk
18th May 2004, 05:33 PM
1) make sure your smb service is running
# service smb status
if it is not running then
# chkconfig smb on
# service smb start
2) to enable access without login
at /etc/samba/smb.conf change security from "user" to "share"
then restart smb service
# service smb restart
drews project
19th May 2004, 01:14 AM
here is the /ect/samba/smb.conf file contents:
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
public = yes
encrypt passwords = yes
log file = /var/log/samba/%m.log
dns proxy = no
os level = 20
server string = Samba Server
load printers = yes
printcap name = /etc/printcap
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
workgroup = West homestead
writeable = yes
[homes]
comment = Home Directories
browseable = no
writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = yes
; share modes = yes
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; read only = yes
; write list = @staff
# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
i looked through it and didnt find any security that you were talking about
linuxzouk
19th May 2004, 01:26 AM
hmmm...
try at [global] section put
security = share
drews project
19th May 2004, 01:57 AM
thanx so much that worked like a charm
drews project
19th May 2004, 02:11 AM
now i can get onto \\localhost but i can only access the printers folder, not the homes folder. i went into the setting and tried playing around with some things but to no avail.
drews project
19th May 2004, 02:18 AM
the security in webmin says read/write to all known users so now i need to make a user for this still im guessing
linuxzouk
19th May 2004, 04:09 AM
home folders can be accessible when security = user
it will then show the home folder of the user when u login from another machine base on your login
u need to create smb username and password to point to linux user
for security = share you can create general folders and set the permissions
see those examples in smb.conf
there is a gui interface in gnome... i can't recall under which menu. the name should be "Samba" try it out... it's easy to use
drews project
19th May 2004, 11:08 PM
it still shows no users under samba server
i did the convert unix users to samba server users but it still doesn't show any user under samba server
drews project
20th May 2004, 03:22 AM
when i go into the samba server settings and click convert unix users to samba users it comes back with this message: "Failed to convert user : could not create account to add new user -s" what can i do about that?
linuxzouk
20th May 2004, 04:23 AM
if your security = user
try see smbadduser command
and have a look at /etc/samba/smbusers
drews project
21st May 2004, 04:04 AM
ok i did the smbadduser thing and it works but when i go into the samba server module in webmin to edit the password or anything it comes back with this message when i press save
"Failed to save user :
Username not found!"
why cant it find it and where do i go from here
linuxzouk
21st May 2004, 04:18 AM
i haven tried webmin b4 so can't help u...
hope someone else is able to
jimbo
21st May 2004, 06:38 PM
Take a look at the "Module Config" link in the Samba section of Webmin and make sure all of the config settings are pointing to the correct file locations.
While you are in the Samba section make sure you hit the "Configure automatic Unix and Samba user synchronisation" link down towards the bottom of the page. That makes user management much easier.
Also, you can set a radio button in the "Users and Groups" module of Webmin to automatically create users in other modules.
drews project
21st May 2004, 08:24 PM
i have most settings on the default. i have configured the automatically create users in other modules and also the unix and samba automatic user sync.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.