O/T: Samba
Prolly not the right site for Samba but I've posted to the Samba list and didn't seem to get anywhere.I have been working on a RedHat machine that is a PDC for a Windows network running XP clients.
The system has the following shares defined in /etc/samba/smb.conf:
/home/netlogon
/home/profiles
/public (FYI /public is a symbolic link to /home/public)
/home/share1
/home/share2
They are all on the /home partition which is on the main system drive, which
is full.
I have installed a second drive, made an ext2 file system, and mounted the
drive as 1 large partition called /share.
I then copied all the data from the /home partition to the /share drive.
I then edited /etc/samba/smb.conf, I deleted the /public symbolic
link, and changed the share path for that share to /share/public
Restarting Samba resulted in the client machines (all running XP) logging in
and receiving an error that their profiles could not be found.
I quickly reverted everything back to the way it was to make sure all was
well, which it was.
Why would changing the location of one share, result in the system not finding profiles? The profiles are located in /home/profiles - and I haven't changed that. Switching /share/public back to /public and all is well again. I can't work it out!!
I had also tried not mounting the /home partition on the primary drive, and mounting the new drive ( /dev/sdb ) as /home expecting this would work and would result in me not needing to edit anything in /etc/samba/smb.conf - which was also wrong - I got the same results, profiles could not be found.
So I reverted everything back to the old drive, but created a new share in smb.conf called 'new' and set its path to /share (the new drive) and this worked, it was happy to leave existing shares in the original location and have a new share in the new location.
This at least gave the people a new spot to put their data, but was not what they were after.
My questions is:
1) Why would changing the location of the 'public' share result in people not being able to login, when their profiles and the 'netlogon' share were still defined as being on the old drive?