Sway's Blog

Computer

File Permissions with Linux

by on Okt.24, 2018, under Computer

There are three types of access restrictions:

Permission     Action     chmod option
=======================================
read           (view)      r or 4
write          (edit)      w or 2
execute        (execute)   x or 1

There are also three types of user restrictions:

User     ls output
===================
owner    -rwx------
group    ----rwx---
other    -------rwx

Folder/Directory Permissions

Permission     Action                              chmod option
===============================================================
read           (view contents: i.e., ls command)   r or 4
write          (create or remove files from dir)   w or 2
execute        (cd into directory)                 x or 1

Numeric notation

Another method for representing Linux permissions is an octal notation as shown by stat -c %a. This notation consists of at least three digits. Each of the three rightmost digits represents a different component of the permissions: owner, group, and others.

Each of these digits is the sum of its component bits in the binary numeral system:

Symbolic Notation     Octal Notation     English
============================================================
----------            0000               no permissions
---x--x--x            0111               execute
--w--w--w-            0222               write
--wx-wx-wx            0333               write & execute
-r--r--r--            0444               read
-r-xr-xr-x            0555               read & execute
-rw-rw-rw-            0666               read & write
-rwxrwxrwx            0777               read, write & execute

Now, what does 755 mean?

7=rwx 5=r-x 5=r-x

This means that the directory has the default permissions -rwxr-xr-x (represented in octal notation as 0755).

Leave a Comment more...

Duplikate in MySQL finden

by on Apr.11, 2016, under Computer

SELECT XXX, COUNT(*) FROM YYY GROUP BY XXX HAVING COUNT(*) >1

Leave a Comment more...

Duplikate im PHP Array finden

by on Jan.29, 2015, under Computer, PHP

function get_duplicates( $array ) {
return array_unique( array_diff_assoc( $array, array_unique( $array ) ) );
}

Leave a Comment more...



Alte TV-Karten unter Windows 7 betreiben…

by on Sep.04, 2011, under Allgemein, Computer, Misc, Personal, Software

Leider gibt es viel zu oft gute Hardware welche man damals für teures Geld gekauft hat und nun steht man da und hat keine Treiber mehr dafür.

Aber unter Umständen gibt es Abhilfe, auch genannt Descaler:

http://deinterlace.sourceforge.net/card-support/index.htm

Schaut mal rein! Meine WinTV Karte lief damit wieder!

Leave a Comment more...

http://www.silverex.org/download/

by on Mai.05, 2009, under Computer, Software

Oder man nimmt gleich die kostenlose Version, welche Open Source ist.

Leave a Comment more...

http://xchat.org/ oder wie ich lernte die Registrierung zu umgehen…

by on Mai.05, 2009, under Computer, Software

Einfach installieren.
Dann in dem Programmordner zwei Dateien (xchat.reg, xchat.bat) anlegen:

xchat.reg:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\XChat]
"installed"=-

xchat.bat:

@echo off

regedit /s xchat.reg
attrib -H -R -S +A inst.conf
del /F inst.conf
start xchat.exe

:exit

Ihr müsst dann nur noch die „xchat.bat“ starten und schon braucht Ihr keine Registrierung mehr.

Anmerkung: Diese Informationen sind nur für Leute die Ihr Keyfile verlohren haben und kein neuen zugeschickt bekommen. Schon eine Schande…

Download: xchat

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!