copperhead
April 29th, 2008, 03:41 AM
I'm putting this in the upgrade section, since it was working before I upgrade, and now it's no longer working.
I don't like upgrading, so I backed up all my home directories, and some important configuration files like my /etc/fstab, and rebuilt my workstation from scratch. My workstation had a samba mount to a samba share on a SUSE server named "gandalf". Here's my setup. (Please don't comment on my lack of security. :))
On gandalf, I have a directory /raid/share that is exported via samba. All the files in the directory are owned by nobody:nobody, and my guest account on my samba share is nobody. My windows box can mount the shares and read and write just fine to the samba share. As I said, up until this upgrade, my Ubuntu box could mount it read/write just fine as well.
In my /etc/fstab on my Ubuntu workstation, I had the following line...
//gandalf/share /mnt/gandalf smbfs rw,username=Copperhead,password=,uid=65534,gid=655 33,dmask=777,fmask=777 0 0
Now, I was getting these new errors:
WARNING: 'dmask' not expressed in octal.
WARNING: CIFS mount option 'dmask' is deprecated. Use 'dir_mode' instead.
WARNING: 'fmask' not expressed in octal.
WARNING: CIFS mount option 'fmask' is deprecated. Use 'file_mode' instead.
Odd... apparently, I'm using CIFS instead of SMB. Not a problem, though. I changed the line to the following:
//gandalf/share /mnt/gandalf smbfs rw,username=Copperhead,password=,uid=65534,gid=655 33,dir_mode=0777,file_mode=0777 0 0
Now I do a "touch /mnt/gandalf/temp" (it doesn't exist) and get the following results:
-rw-r--r-- 1 nobody nobody 0 2008-04-28 22:32 temp
If I do a the touch command again, I get the following:
touch: cannot touch `temp': Permission denied
I tried messing around with a bunch of different things, but to no avail. One thing interesting is that I have a share on a windows box, that I also used to be able to mount read/write with no problems. I now get the same error as above when I mount it.
Something changed in the way my CIFS/SMB client works since the upgrade, and I'd like help in getting this resolved. Thanks!
EDIT: I wanted to add that when I try to delete the temp file I create using the touch command above, I get the following prompt, but I can delete the file:
rm: remove write-protected regular empty file `/mnt/gandalf/temp'?
I don't like upgrading, so I backed up all my home directories, and some important configuration files like my /etc/fstab, and rebuilt my workstation from scratch. My workstation had a samba mount to a samba share on a SUSE server named "gandalf". Here's my setup. (Please don't comment on my lack of security. :))
On gandalf, I have a directory /raid/share that is exported via samba. All the files in the directory are owned by nobody:nobody, and my guest account on my samba share is nobody. My windows box can mount the shares and read and write just fine to the samba share. As I said, up until this upgrade, my Ubuntu box could mount it read/write just fine as well.
In my /etc/fstab on my Ubuntu workstation, I had the following line...
//gandalf/share /mnt/gandalf smbfs rw,username=Copperhead,password=,uid=65534,gid=655 33,dmask=777,fmask=777 0 0
Now, I was getting these new errors:
WARNING: 'dmask' not expressed in octal.
WARNING: CIFS mount option 'dmask' is deprecated. Use 'dir_mode' instead.
WARNING: 'fmask' not expressed in octal.
WARNING: CIFS mount option 'fmask' is deprecated. Use 'file_mode' instead.
Odd... apparently, I'm using CIFS instead of SMB. Not a problem, though. I changed the line to the following:
//gandalf/share /mnt/gandalf smbfs rw,username=Copperhead,password=,uid=65534,gid=655 33,dir_mode=0777,file_mode=0777 0 0
Now I do a "touch /mnt/gandalf/temp" (it doesn't exist) and get the following results:
-rw-r--r-- 1 nobody nobody 0 2008-04-28 22:32 temp
If I do a the touch command again, I get the following:
touch: cannot touch `temp': Permission denied
I tried messing around with a bunch of different things, but to no avail. One thing interesting is that I have a share on a windows box, that I also used to be able to mount read/write with no problems. I now get the same error as above when I mount it.
Something changed in the way my CIFS/SMB client works since the upgrade, and I'd like help in getting this resolved. Thanks!
EDIT: I wanted to add that when I try to delete the temp file I create using the touch command above, I get the following prompt, but I can delete the file:
rm: remove write-protected regular empty file `/mnt/gandalf/temp'?