So I went to System > Administration > Server Settings > Samba and added a folder to share and initially set it to guest access to get things going. I couldn't access this one and only share on this server with guest access from either my Windows laptop (XP Pro SP3) or a Leopard server (10.5.8) so I changed the settings to use user authentication and added my local user details (this is a stand alone file server with one user and the root user running CentOS 5.4). I made sure I hadn't put the entries in iptables incorrect by stopping iptables (sudo /etc/init.d/iptables stop, which executed just fine). SELinux kept popping up so I disabled that and restarted the server also. So now with no iptables nor SELinux enabled flicking between guest and user access I still can't access the share (I have also tried authenticating as root to no avail), my Windows and Mac test machines are erroring out saying they don't have permissions to access the share (I am an administrator on both machines so its not a local permissions issue). There are no firewall restrictions between my test machines and the CentOS server as I would even get prompted for authentication so that's not a problem and my test machines work fine because I can mount smb shares on other files servers in the same subnet as the CentOS server, what's going on? Ideas are welcome! Thanks for reading... -- Regards, James ;) Pablo Picasso - "Computers are useless. They can only give you answers." - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
Hi What does testparm give you? Regards Per At Tuesday, 01-12-2009 on 10:05 "James Bensley" wrote: So I went to System > Administration > Server Settings > Samba and added a folder to share and initially set it to guest access to get things going. I couldn't access this one and only share on this server with guest access from either my Windows laptop (XP Pro SP3) or a Leopard server (10.5.8) so I changed the settings to use user authentication and added my local user details (this is a stand alone file server with one user and the root user running CentOS 5.4). I made sure I hadn't put the entries in iptables incorrect by stopping iptables (sudo /etc/init.d/iptables stop, which executed just fine). SELinux kept popping up so I disabled that and restarted the server also. So now with no iptables nor SELinux enabled flicking between guest and user access I still can't access the share (I have also tried authenticating as root to no avail), my Windows and Mac test machines are erroring out saying they don't have permissions to access the share (I am an administrator on both machines so its not a local permissions issue). There are no firewall restrictions between my test machines and the CentOS server as I would even get prompted for authentication so that's not a problem and my test machines work fine because I can mount smb shares on other files servers in the same subnet as the CentOS server, what's going on? Ideas are welcome! Thanks for reading... -- Regards, James ;) Pablo Picasso - "Computers are useless. They can only give you answers." - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091201/418b9987/attachment-0001.html>
Quoting James Bensley <jwbensley at gmail.com>:> So I went to System > Administration > Server Settings > Samba and > added a folder to share and initially set it to guest access to get > things going. > > I couldn't access this one and only share on this server with guest > access from either my Windows laptop (XP Pro SP3) or a Leopard server > (10.5.8) so I changed the settings to use user authentication and > added my local user details (this is a stand alone file server with > one user and the root user running CentOS 5.4). > > I made sure I hadn't put the entries in iptables incorrect by stopping > iptables (sudo /etc/init.d/iptables stop, which executed just fine). > SELinux kept popping up so I disabled that and restarted the server > also. So now with no iptables nor SELinux enabled flicking between > guest and user access I still can't access the share (I have also > tried authenticating as root to no avail), my Windows and Mac test > machines are erroring out saying they don't have permissions to access > the share (I am an administrator on both machines so its not a local > permissions issue). > > There are no firewall restrictions between my test machines and the > CentOS server as I would even get prompted for authentication so > that's not a problem and my test machines work fine because I can > mount smb shares on other files servers in the same subnet as the > CentOS server, what's going on? > > Ideas are welcome! Thanks for reading...Get output from testparm and attach it (on text format) to this message. -- Eero
The server is called Mars with one user, Mars! [mars at mars ~]$ testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[hestia]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = MY GROUP server string = Mars passdb backend = tdbsam guest account = mars username map = /etc/samba/smbusers guest ok = Yes cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [hestia] path = /backups/hestia read only = No [mars at mars ~]$ -- Regards, James ;) Jonathan Swift - "May you live every day of your life." - http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
2009/12/1 James Bensley <jwbensley at gmail.com>:> I removed the smb.conf file and wrote a new ?one manually but ?for > some reason it only wants to let me connect as "Guest" and not a real > user with some privileges?Have you got SELinux enabled? Ben
Quoting James Bensley <jwbensley at gmail.com>:> Hmm some progress has been made. > > I removed the smb.conf file and wrote a new one manually but for > some reason it only wants to let me connect as "Guest" and not a real > user with some privileges?try with log level = X (Sets the amount of log/debug messages that are sent to the log file. 0 is none, 3 is considerable.) and then read the logs. -- Eero
2009/12/1 James Bensley <jwbensley at gmail.com>:> I removed the smb.conf file and wrote a new ?one manually but ?for > some reason it only wants to let me connect as "Guest" and not a real > user with some privileges?Okay... had a closer look and suggests that your users are not authenticating properly. Have you created samba accounts for the linux users you wish to have access? See http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-samba-configuring.html As Eero suggests, increase your logging level. Ben