File permission issues
Posted: Fri Jul 30, 2010 4:55 am
I've just got my HDA up and running again after a couple of months (I moved, changed ISPs and ended up with a lousy router which would have required building a new HDA, for which I didn't have time....).
Everything seems to be working as it should - I can get the dashboard up and start install apps. But, I cannot copy files to any of the existing shares. I've looked at the trouble shooting section, and everything looks correct - the shares are writeable, and I'm mounting them as a user on the HDA. At present, I'm mounting from the command line (I will probably add some /etc/fstab entries, but don't want to do that until I get the problem sorted out). Mount command I've used is as below:
If I then execute the mount command without arguments, this is what I get for the share I've just mounted:
After a bit of hunting, I find that the 'mand' indicates that mandatory access controls are in force. No idea where that comes from... Anyway, with shares mounted that way, I can read and access files in the share. However, I cannot perform any operation which involves writing to files. I cannot delete any file already in the share area, nor can I copy files into the share area - I get permission denied every time.
I've ssh'd into the HDA, as the same user and I can read and write to the share area that way. Using a fish link from Midnight Commander, I've been able to copy files to the same share area that gives me permission denied errors when it is mounted.
Looking in /var/log/samba on the HDA, there is a log for the machine I'm logging in from, but it is zero length and has not been updated since last night sometime. Looking at the only log that is being updated today (nmbd.log), it has multiple error entries as below:
I'm at a loss at the moment. Can anyone tell me what I've not got set up correctly? I'm also a bit puzzled by the 'IBMPEERS<1b>' entry in the log. Don't know where the <1b> has come from - its almost as though there is a character incorrectly appended to the workgroup name in the config?
Can anyone give me examples of what sort of mount command they would use to mount HDA shares from a Linux box? Or does anyone have any ideas what else I can do to find the cause of the problem?
Paul.
Everything seems to be working as it should - I can get the dashboard up and start install apps. But, I cannot copy files to any of the existing shares. I've looked at the trouble shooting section, and everything looks correct - the shares are writeable, and I'm mounting them as a user on the HDA. At present, I'm mounting from the command line (I will probably add some /etc/fstab entries, but don't want to do that until I get the problem sorted out). Mount command I've used is as below:
Code: Select all
mount -t cifs //hda/music Music -o user=notme2%xxxx
Code: Select all
//hda/music on /home/notme2/Music type cifs (rw,mand)
I've ssh'd into the HDA, as the same user and I can read and write to the share area that way. Using a fish link from Midnight Commander, I've been able to copy files to the same share area that gives me permission denied errors when it is mounted.
Looking in /var/log/samba on the HDA, there is a log for the machine I'm logging in from, but it is zero length and has not been updated since last night sometime. Looking at the only log that is being updated today (nmbd.log), it has multiple error entries as below:
Code: Select all
[2010/07/30 12:35:33, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
find_domain_master_name_query_fail:
Unable to find the Domain Master Browser name IBMPEERS<1b> for the workgroup IBMPEERS.
Unable to sync browse lists in this workgroup.
Can anyone give me examples of what sort of mount command they would use to mount HDA shares from a Linux box? Or does anyone have any ideas what else I can do to find the cause of the problem?
Paul.