|
From: Craig W. <cra...@az...> - 2011-10-11 12:17:42
|
On Mon, 2011-10-10 at 19:16 -0400, TE Dukes wrote: > > > -----Original Message----- > > From: Jamie Cameron [mailto:jca...@we...] > > Sent: Monday, October 10, 2011 5:43 PM > > To: Webmin users list > > Subject: Re: [webmin-l] Adding SAMBA users > > > > On 09/Oct/2011 10:35 TE Dukes <td...@pa...> wrote .. > > > Hello, > > > > > > Trying to setup samba with webmin on a CentOS 6 machine. I > > have been > > > following, > > > > > http://doxfer.webmin.com/Webmin/SambaWindowsFileSharing#Managing_Samba > > > _users > > > > > > When I try to edit samba users and passwords, webmin says, no samba > > > users defined. I have added one user using smbpasswd -a > > <username>. I > > > can see the samba server from windows but it won't let me access it. > > > > > > Been working on this off and on for over a week. Could use > > some help. > > > > You need to use the "Convert Unix Users to Samba Users" icon > > in the Samba module to create samba accounts for some or all > > of your unix users. Unfortunately samba users cannot exist in > > isolation. > > > > Or simpler still, click on the "Configure automatic Unix and > > Samba user synchronisation" > > icon to setup automatic samba user creation when a unix user > > is added. Then you can add a user at System -> Users and > > Groups, and he will be created in Samba as well. > > > > - Jamie > Hi Jamie, > > I did the above but no luck. I see my user name being added when I convert > unix users to samba users. > > Since yesterday, I've done something and can't see the samba server from > windows. I changed the hostname in Networking > Network Configuration > > Hostname and DNS Client to the FQDN from the hostname, ts130. When webmin > asks for hostname, should that be the FQDN, machine name or domain name? I > noticed that seems to be where the Netbios name comes from. > > When I try to login to the windows machine from the server, I get a popup > box asking for username, domain, and password. I setup an account on the > windows machine the same as I set up for me as a samba user. When I enter > the information, it just re-asks for the same info. > > Here's the smb.conf: > > # Samba config file created using SWAT > # from UNKNOWN (0.0.0.0) > # Date: 2011/10/09 14:50:41 > > [global] > workgroup = PALMETTO > netbios name = TS130 > server string = Samba Server Version %v > interfaces = lo, eth0, 192.168.1.0/24 > security = SHARE > log file = /var/log/samba/log.%m > max log size = 50 > wins proxy = Yes > wins server = 192.168.1.110 > cups options = raw > > [homes] > comment = Home Directories > writable = yes > valid users = %S > path = /home > browseable = Yes > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > > [netlogon] > comment = Network Logon Service > path = /var/lib/samba/netlogon > guest ok = Yes > share modes = No > > [Profiles] > path = /var/lib/samba/profiles > guest ok = Yes > browseable = No > ---- samba 'security = share' does not comprehend anything about 'users' as the intention of this setting is to mimic Windows 95/98 shares based not on users but only a password. You probably need to pick a specific user for the 'global' share and assign that user and it is that user's password that is significant with 'security = share' (map to guest?) It is also deprecated. Also note that 'security = share' does not support other users, home directories, profiles nor domain logons though if you actually want to support home directories, profiles, you probably need to configure it as a domain controller and actually 'join' the Windows machines to the domain. Much as you probably don't want to, you should actually be reading about these things in the man page for smb.conf or better yet, the excellent documentation at www.samba.org (Official Samba 3 Howto & By Example). Simply put, all of the simplifications you are trying to accomplish via SWAT or Webmin aren't going to work for if you have no understanding of the underlying technology. To see the samba server, you have to make sure 'nmb' (or nmbd depending upon the Linux version) is running (that is Netbios on Linux). Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |