Re: mc bug? or i've not read the manuals
The bits get lost because both mc and emacs rename originalfile to originalfile~ (e.g.) and create a new originalfile, without preserving the original ownership/permissions. (n)vi does not suffer from this problem, but neither does it create backups. --Jeff
Re: mc bug? or i've not read the manuals
On Thu, Jan 21, 1999 at 11:32:54AM -0500, Dale Scheetz wrote: > I suspect that both of you are editing these files as a user. I suspect > (but haven't checked) that if you do the edit as root, that the bits will > stay in place, but another user, who may have write permissions on the > file should not be able to change the functionality and retain the > setuidness. This seems like a proper quirk of the permissions system and > nothing to do with the editor in question. Unless something has changed, the setuid bit is ignored on scripts anyway. I just tried to get one working on Linux 2.0.34 for demo purposes and couldn't. Actually you lose the bit just doing an owner change as root even. Hamish -- Hamish Moffatt VK3TYD [EMAIL PROTECTED], [EMAIL PROTECTED] Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5 CCs of replies from mailing lists are welcome. http://hamish.home.ml.org
Re: mc bug? or i've not read the manuals
On Thu, 21 Jan 1999, Jules Bean wrote: > On Thu, 21 Jan 1999, Tibor Koleszar wrote: > > > Hello, > > > > So, if you have a script with a setuid flag after you edit+save it in > > mc's editor the flag will dissapear... > > I dont know, but i think it's a bug. > > Let me know if it is, and i'll report it. > > i've observed the same thing in emacs. > > Presumably it's an OS level safety feature. > > (Seems sensible to me) I suspect that both of you are editing these files as a user. I suspect (but haven't checked) that if you do the edit as root, that the bits will stay in place, but another user, who may have write permissions on the file should not be able to change the functionality and retain the setuidness. This seems like a proper quirk of the permissions system and nothing to do with the editor in question. Luck, Dwarf -- _-_-_-_-_- Author of "The Debian Linux User's Guide" _-_-_-_-_-_- aka Dale Scheetz Phone: 1 (850) 656-9769 Flexible Software 11000 McCrackin Road e-mail: [EMAIL PROTECTED] Tallahassee, FL 32308 _-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-
Re: mc bug? or i've not read the manuals
On Thu, 21 Jan 1999, Tibor Koleszar wrote: > Hello, > > So, if you have a script with a setuid flag after you edit+save it in > mc's editor the flag will dissapear... > I dont know, but i think it's a bug. > Let me know if it is, and i'll report it. i've observed the same thing in emacs. Presumably it's an OS level safety feature. (Seems sensible to me) Jules /+---+-\ | Jelibean aka | [EMAIL PROTECTED] | 6 Evelyn Rd| | Jules aka | [EMAIL PROTECTED] | Richmond, Surrey | | Julian Bean | [EMAIL PROTECTED]| TW9 2TF *UK* | ++---+-+ | War doesn't demonstrate who's right... just who's left. | | When privacy is outlawed... only the outlaws have privacy. | \--/