wsl/linux file permission erased

Something is missing in Far Manager? You have a great idea that should be heard? Write here.
Post Reply
docertabum
Posts: 2
Joined: Thu 05 Sep, 2019 22:25
Has thanked: 2 times

wsl/linux file permission erased

Post by docertabum » Thu 05 Sep, 2019 23:47

Hello guys,

I have Win10 + WSL Archlinux + zsh.

1. If I edit linux files - for example .zshrc - through editor in Far then the file (linux) permissions are cleared. Is it possible to set it somehow to not touch the permissions?

2. is it possible to show that kind of permissions next to the files in Far panel or in status line?

Thank you!

User avatar
HaRT
Moderator
Posts: 8823
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 84 times
Been thanked: 151 times

wsl/linux file permission erased

Post by HaRT » Thu 05 Sep, 2019 23:56

docertabum wrote:
Thu 05 Sep, 2019 23:47
1. If I edit linux files - for example .zshrc - through editor in Far then the file (linux) permissions are cleared.
Microsoft WSL blog post explicitly and strongly discourages from opening WSL file system files from Windows. Doing so you break Linux file system consistency. Far cannot undo it for you.
Фар есть инструмент, а не нянька. © 2009 DrKnS

User avatar
DrKnS
Posts: 5332
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 6 times
Been thanked: 214 times

wsl/linux file permission erased

Post by DrKnS » Thu 05 Sep, 2019 23:58

1. By default when you save a file it's recreated. Try setting Editor.SaveSafely to false in far:config to save in place.
2. No idea, are they available through any Windows APIs?

docertabum
Posts: 2
Joined: Thu 05 Sep, 2019 22:25
Has thanked: 2 times

wsl/linux file permission erased

Post by docertabum » Fri 06 Sep, 2019 00:09

thank you guys for instant answers... :)

Post Reply

Return to “Suggestions and Ideas”