How can I change the owner of a file?

Advertisement

scheffe
Guest

How can I change the owner of a file?

Hi!
To my knowledge only the owner of a file is able to change the preferences (of his/her files).
But how can i change the owner, so that other persons can chage the preferences?

Thanks a lot!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
36,025
Location:
Prague, Czechia

Re: how can i change the owner of a file?

I believe that the users that has write permissions to the file can change its permissions. So you can grant group of users write permissions.

Reply with quote

Guest

Re: how can i change the owner of a file?

I'm the owner of the file and because of this other persons are not able the change the permissions!

Reply with quote

martin
Site Admin
martin avatar

Re: how can i change the owner of a file?

Anonymous wrote:

I'm the owner of the file and because of this other persons are not able the change the permissions!
OK, I was wrong. Only owner and root can change the permissions on most of *nix systems.

Reply with quote

Galaxist
Guest

Re: how can i change the owner of a file?

Hi, On my system I'm the root. But I can't change owner and group. When I open that window, the entries of owner and group are grey. :(

<invalid hyperlink removed by admin>

Do anyone know Why???
I've got the Version 3.5.5

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
36,025
Location:
Prague, Czechia

Re: how can i change the owner of a file?

Galaxist wrote:

Hi, On my system I'm the root. But I can't change owner and group. When I open that window, the entries of owner and group are grey.
You can change owner/group with SCP protocol and SFTP protocol version 4 and greater. In other words, you cannot change them with SFTP 3 and below (most of the SFTP servers). Read Supported transfer protocols.

Reply with quote

Guest

Re: how can i change the owner of a file?

Hello,
there must be a local reason but I don't know why.
On my current notebook I have no access to groups/owners (XP SP1)
On my old machine (XP without SP1) I have access.
This has nothing to do with WinSCP version or Linux.

Any idea what I have to change in my current XP?

Thx
Detlev

Reply with quote

martin
Site Admin
martin avatar

Re: how can i change the owner of a file?

See above. You may use SFTP on current notebook, while SCP on old machine.

Reply with quote

Macadamia
Guest

Re: how can i change the owner of a file?

Galaxist wrote:

Hi, On my system I'm the root. But I can't change owner and group. When I open that window, the entries of owner and group are grey. :(
Had the same problem, here's my solution:

- Open in PuTTY (CTRL-P from winscp)
- change to desired directory (cd .. / cd foldername / dir)

- chown -R new_owner:new_group *
this changes the owner and group of all files and subfolders of the current directory (enter chown --help for more info)

hope it helps! :D

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum