Leserechte mit chmod setzten
Geizhals » Forum » Software » Leserechte mit chmod setzten (11 Beiträge, 79 Mal gelesen) Top-100 | Fresh-100
Du bist nicht angemeldet. [ Login/Registrieren ]
......
Re(6): Leserechte mit chmod setzten
04.02.2004, 14:19:45
hi,

The "permission" argument can take two forms:


Permissions can be specified in a "relative" form that only changes (adds or deletes) for particular accounts (user, group, or other). This form is easier for novices to use because it uses mnemonic letters, not digits, to represent the groups and permissions.
"Relative" form syntax of the permission argument is

[ugoa]+-[rwx]
Here you pick one or more items from each list enclosed in brackets (you do not type the brackets), separated by either the plus or minus sign (not both).

The first item represents the accounts that you will affect:

u - affect permission for user (owner)

g - affect permission for group

o - affect permission for others

a - affect permission for all accounts.

Next, you give a plus sign if you are adding permission, and a minus sign if you are taking away permission

The final item represents the type of permission that you will affect:

r - read permission

w - write permission

x - execute permission

You can specify a second plus or minus sign with appropriate permission in one argument, for example, "og-w+r"

Examples using this "relative" form of permission argument:


chmod go-rw filename
for text files that you want no one else to read or write.
chmod go-w filename
for text files that others can read, but not write.
chmod go-w+x filename
for executable programs that others can execute, but not write.
chmod a-w+r filename
for text files that no one, including yourself, can write (or delete!), but all can read.

lg,
hariw


The best way to speed up a PC is @ 9.81 m/sec².

Antworten PM Übersicht Chronologisch Zum Vorgänger
 
Melden nicht möglich
 

Dieses Forum ist eine frei zugängliche Diskussionsplattform.
Der Betreiber übernimmt keine Verantwortung für den Inhalt der Beiträge und behält sich das Recht vor, Beiträge mit rechtswidrigem oder anstößigem Inhalt zu löschen.
Datenschutzerklärung