* chown in vista not work because of permission denied
@ 2010-05-02 22:27 Matthias Meyer
2010-05-03 9:21 ` Corinna Vinschen
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Meyer @ 2010-05-02 22:27 UTC (permalink / raw)
To: cygwin
Hello,
I have a cygwin 1.5.25 installation on a vista client.
I can access the vista client by ssh. For that I use an account
called "backup".
I want use the ssh account for backup/restore with rsync.
The Backup work well but the restore not :-(
The files from a restore are owned by the ssh-account and not by the
original user.
I get an rsync error:
rsync: chown "/Users/matthias/Desktop/.logfile.lnk.Ud0Zgp" (in C) failed:
Permission denied (13)
I would believe if I can solve the following construction my problem above
will be solved too:
If I login into this ssh backup@vista I can create a file but I can not
change the owner afterwards.
$ echo "test" > /cygdrive/c/Users/matthias/Desktop/test.txt
$ ls -alh /cygdrive/c/Users/matthias/Desktop/test.txt
-rw-r--r-- 1 Backup None 5 May 3 00:07 test.txt
$ chown matthias /cygdrive/c/Users/matthias/Desktop/test.txt
chown: changing ownership of `test.txt': Permission denied
I've set the following rights for the user "backup"
net localgroup "${admingroup}" backup /add
editrights -a SeBackupPrivilege -u backup &&
editrights -a SeRestorePrivilege -u backup &&
editrights -a SeServiceLogonRight -u backup
Thanks in advance
Matthias
--
Don't Panic
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: chown in vista not work because of permission denied
2010-05-02 22:27 chown in vista not work because of permission denied Matthias Meyer
@ 2010-05-03 9:21 ` Corinna Vinschen
2010-05-03 18:11 ` Matthias Meyer
0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2010-05-03 9:21 UTC (permalink / raw)
To: cygwin
On May 3 00:26, Matthias Meyer wrote:
> Hello,
>
> I have a cygwin 1.5.25 installation on a vista client.
> I can access the vista client by ssh. For that I use an account
> called "backup".
>
> I want use the ssh account for backup/restore with rsync.
> The Backup work well but the restore not :-(
> The files from a restore are owned by the ssh-account and not by the
> original user.
That's an UAC induced problem. Should work fine with Cygwin 1.7.
The other alternative is to switch off UAC entirely.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: chown in vista not work because of permission denied
2010-05-03 9:21 ` Corinna Vinschen
@ 2010-05-03 18:11 ` Matthias Meyer
0 siblings, 0 replies; 3+ messages in thread
From: Matthias Meyer @ 2010-05-03 18:11 UTC (permalink / raw)
To: cygwin
Corinna Vinschen wrote:
> On May 3 00:26, Matthias Meyer wrote:
>> Hello,
>>
>> I have a cygwin 1.5.25 installation on a vista client.
>> I can access the vista client by ssh. For that I use an account
>> called "backup".
>>
>> I want use the ssh account for backup/restore with rsync.
>> The Backup work well but the restore not :-(
>> The files from a restore are owned by the ssh-account and not by the
>> original user.
>
> That's an UAC induced problem. Should work fine with Cygwin 1.7.
Fine. So I will try cygwin 1.7.
> The other alternative is to switch off UAC entirely.
Not the best of all ideas ;-)
>
>
> Corinna
>
Thanks
Matthias
--
Don't Panic
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-03 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-02 22:27 chown in vista not work because of permission denied Matthias Meyer
2010-05-03 9:21 ` Corinna Vinschen
2010-05-03 18:11 ` Matthias Meyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).