smbmount filesystem weirdness

Craig Pratt pratt at teleport.com
Sat May 13 01:28:28 GMT 2000


Hi all,

In my effort to get RCS archive access via smbmount, I stumbled across
another interesting bit of behaviour with smbmount that could be playing a
part - but does not involve RCS.

Normally, under Linux - or any Unix - the following sequence of commands
works:

[cpratt at cpratt-desk2 ~/dud]$ ls -la
total 3
drwxr-xr-x   2 cpratt   users        1024 May 12 18:09 .
drwx------  32 cpratt   users        2048 May 12 18:09 ..
[cpratt at cpratt-desk2 ~/dud]$ touch dud
[cpratt at cpratt-desk2 ~/dud]$ ls -la
total 3
drwxr-xr-x   2 cpratt   users        1024 May 12 18:09 .
drwx------  32 cpratt   users        2048 May 12 18:09 ..
-rw-r--r--   1 cpratt   users           0 May 12 18:09 dud
[cpratt at cpratt-desk2 ~/dud]$ chmod u-w dud
[cpratt at cpratt-desk2 ~/dud]$ ls -la
total 3
drwxr-xr-x   2 cpratt   users        1024 May 12 18:09 .
drwx------  32 cpratt   users        2048 May 12 18:09 ..
-r--r--r--   1 cpratt   users           0 May 12 18:09 dud
[cpratt at cpratt-desk2 ~/dud]$ rm -f dud
[cpratt at cpratt-desk2 ~/dud]$ ls -la
total 3
drwxr-xr-x   2 cpratt   users        1024 May 12 18:10 .
drwx------  32 cpratt   users        2048 May 12 18:09 ..

No problem, right?

Well, when I do these same operations in a smbmount-ed directory, I get a
different result:

$ ls -la
total 1
drwx------   1 cpratt   users         512 Jun 21  2005 .
drwx------   1 cpratt   users         512 Jun 21  2005 ..
$ touch dud
$ ls -la
total 1
drwx------   1 cpratt   users         512 Jul 16  2017 .
drwx------   1 cpratt   users         512 Jun 21  2005 ..
-rwx------   1 cpratt   users           0 Nov 24  1922 dud
$ chmod u-w dud
$ ls -la
total 1
drwx------   1 cpratt   users         512 Jul 16  2017 .
drwx------   1 cpratt   users         512 Jun 21  2005 ..
-r-x------   1 cpratt   users           0 Nov 24  1922 dud
$ rm -f dud
rm: cannot unlink `dud': Permission denied
$ ls -la
total 1
drwx------   1 cpratt   users         512 Jul 16  2017 .
drwx------   1 cpratt   users         512 Jun 21  2005 ..
-r-x------   1 cpratt   users           0 Nov 24  1922 dud

I have a feeling that it's something related to this difference in
semantics regarding read-only files that's breaking RCS. Is there anything
to be done to deal with this difference?

Thanks,

Craig
-- 
  ''-..___..-''   ''-..___..-''   ''-..___..-''   ''-..___..-''   '
 craig & shahnaz pratt    _pratt at acm.org_    portland, oregon, usa 
 <http://www.teleport.com/~pratt/> _ ICQ 4615721  "ignore the norm" 
-''   ''-..___..-''   ''-..___..-''   ''-..___..-''   ''-..___..-''


More information about the samba mailing list