Topic "how can i change the owner of a file?"

Author Message
scheffe

Guest


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!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Guest




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



prikryl wrote:
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Galaxist

Guest


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. Sad

<invalid hyperlink removed by admin>

Do anyone know Why???
I've got the Version 3.5.5
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
Guest




Hello,
there must be a local reason but I dont 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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Quote:
there must be a local reason but I dont 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.

See above. You may use SFTP on current notebook, while SCP on old machine.
_________________
Martin Prikryl
Macadamia

Guest


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. Sad

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


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! Very Happy
Guest




Macadamia wrote:
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. Sad

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


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! Very Happy


made a litte mistake, should be * instead of *.*

- chown -R new_owner:new_group *
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License