Hello,
When I upload a file the owner of the file are my user. Now I want to change the user to the user of a multi-maintainer-project. When I run "chown commonshelper2 <FILE>" I get the error: "chown: changing ownership of `<FILE>': Operation not permitted". What do I wrong (I test it with both user and chmod 777)
Viele Grüße Jan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jan Luca:
When I run "chown commonshelper2 <FILE>" I get the error: "chown: changing ownership of `<FILE>': Operation not permitted".
under modern Unix systems, you cannot "give away" a file to another user, because this was a common source of security issues. instead, just copy the file as the user "commonshelper2", and the new file will be created with the desired ownership.
- river.
Hi,
And how can I copy as commonshelper2? It have no ssh-key to log in?
Thanks, Jan
-----Ursprüngliche Nachricht----- Von: toolserver-l-bounces@lists.wikimedia.org [mailto:toolserver-l-bounces@lists.wikimedia.org] Im Auftrag von River Tarnell Gesendet: Montag, 7. September 2009 19:35 An: toolserver-l@lists.wikimedia.org Betreff: Re: [Toolserver-l] Change onwer by multi-maintainer-project
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jan Luca:
When I run "chown commonshelper2 <FILE>" I get the error: "chown: changing ownership of `<FILE>': Operation not permitted".
under modern Unix systems, you cannot "give away" a file to another user, because this was a common source of security issues. instead, just copy the file as the user "commonshelper2", and the new file will be created with the desired ownership.
- river.
_______________________________________________ Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jan Luca:
And how can I copy as commonshelper2?
type "become commonshelper2" at the shell prompt to assume the tool's user id.
- river.
How can I run become in a SFTP-Client?
-----Ursprüngliche Nachricht----- Von: toolserver-l-bounces@lists.wikimedia.org [mailto:toolserver-l-bounces@lists.wikimedia.org] Im Auftrag von River Tarnell Gesendet: Montag, 7. September 2009 19:59 An: toolserver-l@lists.wikimedia.org Betreff: Re: [Toolserver-l] Change onwer by multi-maintainer-project
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jan Luca:
And how can I copy as commonshelper2?
type "become commonshelper2" at the shell prompt to assume the tool's user id.
- river.
_______________________________________________ Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jan Luca:
How can I run become in a SFTP-Client?
you need to upload the files as your own user then copy them to the project account.
- river.
On Wed, Sep 9, 2009 at 2:58 PM, River Tarnell river@loreley.flyingparchment.org.uk wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jan Luca:
How can I run become in a SFTP-Client?
you need to upload the files as your own user then copy them to the project account.
Or become user, make sure everything's group-read/writable, then operate the STFP client under your normal user name, which should be in the shared tool group (type "group" on the shell, it show the shared tool name among others).
Cheers, Magnus
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Magnus Manske:
Or become user, make sure everything's group-read/writable, then operate the STFP client under your normal user name
but he was asking how to make files owned by the project user; uploading as the normal user account will make them owned by the normal user instead.
- river.
toolserver-l@lists.wikimedia.org