The early Unix history of chown() being restricted to root
utcc.utoronto.ca
The early Unix history of chown() being restricted to root
1–10 of 41 posts
Re: The early Unix history of chown() being restricted to root
#2Re: The early Unix history of chown() being restricted to root
#3> You don't have permission to access /~cks/space/blog/unix/ChownRestrictionEarlyHistory on this server.
I laughed out loud.
https://web.archive.org/web/20251018101005/https://utcc.utor...
Re: The early Unix history of chown() being restricted to root
#4It was one of those restrictions that seemed unjustified to me but I figured someone smarter than I had seen a reason.
Would save me a wrapper script on my flashdrive that does hacks like loading it from stdin or moving it to temp file.
Re: The early Unix history of chown() being restricted to root
#5Re: The early Unix history of chown() being restricted to root
#6Re: The early Unix history of chown() being restricted to root
#7It was one of those restrictions that seemed unjustified to me but I figured someone smarter than I had seen a reason.
Yeah.. I'm sitting here wondering how many years would it take to remove equally stupid error that says 'private key permissions too open' from ssh-add and friends. Would save me a wrapper script on my flashdrive that does hacks like loading it from stdin or moving it to temp file.
Re: The early Unix history of chown() being restricted to root
#8It was one of those restrictions that seemed unjustified to me but I figured someone smarter than I had seen a reason.
Re: The early Unix history of chown() being restricted to root
#9The protocol for changing ownership should be two step.
1. The file is put into an "offered" state, e.g. "offered to bob". Only the owner or superuser can make this state change.
2. Bob can take an "offered to bob" file and change ownership to bob.
Files can always be in an offered state; i.e. have an offered user which is normaly equal to their owner. So when ownership is taken, the two match again.
Re: The early Unix history of chown() being restricted to root
#10It was one of those restrictions that seemed unjustified to me but I figured someone smarter than I had seen a reason.