From: Frank van Maarseveen <frankvm@xs4all.nl>
To: Linux NFS mailing list <nfs@lists.sourceforge.net>
Subject: chmod 1777 not working
Date: Thu, 19 Aug 2004 15:51:17 +0200 [thread overview]
Message-ID: <20040819135117.GA18593@janus> (raw)
NFSv3, UDP.
client: 2.4.27 (RH9)
in a directory mounted from a HP OSF1 V5.1 1885 alpha server:
$ chmod 1777 .
$ chmod: changing permissions of `.' (requested: 1777, actual: 0777): Operation not permitted.
It did change the mode bits masked by 0777 however. Only the 01000 bit
didn't come through.
tcpdump:
15:42:35.644411 172.17.1.64.490930292 > 172.17.1.1.2049: 168 getattr fh 2878,245260/302892 (DF) (ttl 64, id 0, len 196)
15:42:35.644607 172.17.1.1.2049 > 172.17.1.64.490930292: reply ok 112 getattr DIR 755 ids 363/1522 sz 0x000002000 (ttl 60, id 51728, len 140)
15:42:35.644843 172.17.1.64.507707508 > 172.17.1.1.2049: 200 setattr fh 2878,245260/302892 (DF) (ttl 64, id 0, len 228)
15:42:35.645631 172.17.1.1.2049 > 172.17.1.64.507707508: reply ok 120 setattr POST: DIR 777 ids 363/1522 sz 0x000002000 (ttl 60, id 51729, len 148)
15:42:35.646924 172.17.1.64.524484724 > 172.17.1.1.2049: 168 getattr fh 2878,245260/302892 (DF) (ttl 64, id 0, len 196)
15:42:35.647127 172.17.1.1.2049 > 172.17.1.64.524484724: reply ok 112 getattr DIR 777 ids 363/1522 sz 0x000002000 (ttl 60, id 51732, len 140)
Against a Linux 2.4.26 server (NFSv3, UDP) works. tcpdump:
14:35:14.601275 172.17.1.64.842858612 > 172.17.1.66.2049: 156 getattr fh Unknown/1 (DF) (ttl 64, id 0, len 184)
14:35:14.601447 172.17.1.66.2049 > 172.17.1.64.842858612: reply ok 112 getattr DIR 40755 ids 363/1522 sz 0x000001000 (DF) (ttl 64, id 0, len 140)
14:35:14.601695 172.17.1.64.859635828 > 172.17.1.66.2049: 188 setattr fh Unknown/1 (DF) (ttl 64, id 0, len 216)
14:35:14.607469 172.17.1.66.2049 > 172.17.1.64.859635828: reply ok 120 setattr POST: DIR 41777 ids 363/1522 sz 0x000001000 (DF) (ttl 64, id 0, len 148)
14:35:14.607772 172.17.1.64.876413044 > 172.17.1.66.2049: 156 getattr fh Unknown/1 (DF) (ttl 64, id 0, len 184)
14:35:14.608009 172.17.1.66.2049 > 172.17.1.64.876413044: reply ok 112 getattr DIR 41777 ids 363/1522 sz 0x000001000 (DF) (ttl 64, id 0, len 140)
Notice that tcpdump reports "DIR xxx" in the bad case and "DIR 40xxx"
when it works. Significant?
--
Frank
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next reply other threads:[~2004-08-19 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-19 13:51 Frank van Maarseveen [this message]
2004-08-19 14:28 ` chmod 1777 not working Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040819135117.GA18593@janus \
--to=frankvm@xs4all.nl \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.