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 »

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: 10822
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

wsl/linux file permission erased

Post by HaRT »

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: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

wsl/linux file permission erased

Post by DrKnS »

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 »

thank you guys for instant answers... :)
Post Reply

Return to “Suggestions and Ideas”