|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
chmod: Permission deniedmy windows login domain has changed and now I cannot chmod the files
that I created when I was logged in using my previous login domain. how can I fix this? do I need to do find . -exec 'cp -p {} {}.new; mv {}.new {}' \; (or something)? thanks. -- Sam Steingold (http://www.podval.org/~sds) running w2k http://www.dhimmi.com/ http://ffii.org/ http://www.palestinefacts.org/ http://www.mideasttruth.com/ http://www.savegushkatif.org If brute force does not work, you are not using enough. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ |
|
|
Re: chmod: Permission deniedOn Mon, 7 Nov 2005, Sam Steingold wrote:
> my windows login domain has changed and now I cannot chmod the files > that I created when I was logged in using my previous login domain. > how can I fix this? > do I need to do > find . -exec 'cp -p {} {}.new; mv {}.new {}' \; > (or something)? After you update your /etc/passwd, does "chown" work? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@... ZZZzz /,`.-'`' -. ;-;;,_ igor@... |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ |
|
|
Re: chmod: Permission denied> * Igor Pechtchanski <crpugpun@...> [2005-11-07 13:58:16 -0500]:
> > On Mon, 7 Nov 2005, Sam Steingold wrote: > >> my windows login domain has changed and now I cannot chmod the files >> that I created when I was logged in using my previous login domain. >> how can I fix this? >> do I need to do >> find . -exec 'cp -p {} {}.new; mv {}.new {}' \; >> (or something)? > > After you update your /etc/passwd, does "chown" work? you mean chmod? I fixed the login domain in /etc/passwd, nothing changed - how do I tell cygwin to re-read /etc/passwd? I killed all cygwin processes, but this did not help (I guess I have to manually unload cydwin1.dll) Thanks! -- Sam Steingold (http://www.podval.org/~sds) running w2k http://ffii.org/ http://pmw.org.il/ http://www.openvotingconsortium.org/ http://www.dhimmi.com/ http://www.mideasttruth.com/ http://truepeace.org Yeah, yeah, I love cats too... wanna trade recipes? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ |
|
|
Re: chmod: Permission deniedOn Mon, 7 Nov 2005, Sam Steingold wrote:
> > * Igor Pechtchanski <crpugpun@...> [2005-11-07 13:58:16 -0500]: > > > > On Mon, 7 Nov 2005, Sam Steingold wrote: > > > >> my windows login domain has changed and now I cannot chmod the files > >> that I created when I was logged in using my previous login domain. > >> how can I fix this? > >> do I need to do > >> find . -exec 'cp -p {} {}.new; mv {}.new {}' \; > >> (or something)? > > > > After you update your /etc/passwd, does "chown" work? > > you mean chmod? Nope, I meant "chown". If the old owner of the file is defunct, the new user might as well take ownership -- that should also allow changing permissions. > I fixed the login domain in /etc/passwd, nothing changed > - how do I tell cygwin to re-read /etc/passwd? This should happen automatically -- no need to restart things. > I killed all cygwin processes, but this did not help > (I guess I have to manually unload cydwin1.dll) Did you also fix the SID? I suggest doing a mkpasswd -d -u YOURUSER YOURNEWDOMAIN >> /etc/passwd and then renaming the old user in /etc/passwd to something like "YOURUSER_old". You can make the appropriate changes to the home directory and login shell fields, as needed. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@... ZZZzz /,`.-'`' -. ;-;;,_ igor@... |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ |
| Free embeddable forum powered by Nabble | Forum Help |