S
S
Shimpanze2019-10-16 02:21:25
linux
Shimpanze, 2019-10-16 02:21:25

How to display permissions in human form in WinSCP (755, 644, etc.)?

Hello!
How to display permissions in human form in WinSCP (755, 644, etc.)?
5da6545e760d5989126615.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor Taran, 2019-10-17
@Shimpanze

everything is pretty simple here
In Linux, the rights are divided into three groups, you know that
in each of them there can be
rwx values ​​\u200b\u200b- since there are three groups, then rwxrwxrwx
is also because the rules look like this
r--r--r-- - that is, missing values ​​​​do not disappear and take values ​​- it is easy to represent them in binary code
r to take for labor
- for fels
, therefore, the number of options in binary notation for each of the users will be 8
if from a mathematical point of view 2 to the power of three
and eight combinations are easily written in the 8-ary system as 777 444 655 and so on
, in fact, this is a banal translation of the binary system into an octal one and nothing more.
it is much more convenient to read the binary one, since you can immediately see all the rights of
switching between these three groups, the following
File owner is the first group
Group - all authorized, roughly speaking - the second group
, and all the rest is the third.
If you look at the real rights in Linux, they don't look like you on the screen, but like this

rw-r--r--  1 root root       334978 Mar 26  2019  dbispconfig.sql
-rw-r--r--  1 root root         1634 Apr 26 18:30 'Einmal;sd;fawe'
-rw-r--r--  1 root root         9755 Apr  4  2019 'f6ww0vl7virusdie (1).php'
-rw-r--r--  1 root root         9755 Jan 15  2019  f6ww0vl7virusdie.php

pay attention where after the 2nd entry comes the owner root and the group root, thanks to the latter, there is a switch between the first and second groups, the third group rwx is those who are not included in either the first or the second.
so everything here is correct and easy to read.
not chmod but chown is responsible for changing the user and group (use with full paths because it works very quickly and will kill the system if an error occurs)
there are only 3
644 755 444 standard rules and it’s quite easy to remember their external display, it’s more convenient to set non-standard ones because it’s more visual , but it’s quite difficult to recall 341 offhand, where the entry in binary is clearer.

K
ky0, 2019-10-16
@ky0

It is no less human. If you want something strange - rewrite the software, what to say ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question