From bac8a5d2822835cf47175d1162030653fadd5c09 Mon Sep 17 00:00:00 2001
From: johannst The Modify acl entries
-# Add acl entry for user "user123".
-setfacl -m "u:user123:rwx" /tank/foo
+
# Add acl entry for user "user123".
+setfacl -m "u:user123:rwx" /tank/foo
-# Remove entry for user "user123".
-setfacl -x "u:user123" /tank/foo
+# Remove entry for user "user123".
+setfacl -x "u:user123" /tank/foo
-# Add acl entry for group "group456".
-setfacl -m "g:group456:rx" /tank/foo
+# Add acl entry for group "group456".
+setfacl -m "g:group456:rx" /tank/foo
# Add acl entry for others.
-setfacl -m "o:rx" /tank/foo
+setfacl -m "o:rx" /tank/foo
# Remove extended acl entries.
setfacl -b /tank/foo
@@ -221,7 +221,7 @@ setfacl -b /tank/foo
mask
defines the maximum access rights that can be given to users and
groups.# Update the mask.
-setfacl -m "m:rx" /tank/foo
+setfacl -m "m:rx" /tank/foo
# List acl entries.
getfacl /tank/foo
diff --git a/linux/coredump.html b/linux/coredump.html
index 9ec6ef8..f3526a7 100644
--- a/linux/coredump.html
+++ b/linux/coredump.html
@@ -201,7 +201,7 @@ In a typical bash/zsh this can be done as
/proc/bus/input/devices
in the proc filesystem can be consulte
This yields entries as follows and shows which Handlers
are assigned to which
Name
.
I: Bus=0018 Vendor=04f3 Product=0033 Version=0000
-N: Name="Elan Touchpad"
+N: Name="Elan Touchpad"
...
H: Handlers=event15 mouse0
...
@@ -241,9 +241,9 @@ struct input_event {
const char* type(unsigned short t) {
static char buf[32];
- const char* fmt = "0x%x";
+ const char* fmt = "0x%x";
switch (t) {
-#define FMT(TYPE) case TYPE: fmt = #TYPE"(0x%x)"; break
+#define FMT(TYPE) case TYPE: fmt = #TYPE"(0x%x)"; break
FMT(EV_SYN);
FMT(EV_KEY);
FMT(EV_REL);
@@ -256,9 +256,9 @@ const char* type(unsigned short t) {
const char* code(unsigned short c) {
static char buf[32];
- const char* fmt = "0x%x";
+ const char* fmt = "0x%x";
switch (c) {
-#define FMT(CODE) case CODE: fmt = #CODE"(0x%x)"; break
+#define FMT(CODE) case CODE: fmt = #CODE"(0x%x)"; break
FMT(BTN_LEFT);
FMT(BTN_RIGHT);
FMT(BTN_MIDDLE);
@@ -274,7 +274,7 @@ const char* timefmt(const struct timeval* t) {
assert(t);
struct tm* lt = localtime(&t->tv_sec); // Returns pointer to static tm object.
static char buf[64];
- strftime(buf, sizeof(buf), "%H:%M:%S", lt);
+ strftime(buf, sizeof(buf), "%H:%M:%S", lt);
return buf;
}
@@ -288,7 +288,7 @@ int main(int argc, char* argv[]) {
while (1) {
int ret = read(fd, &inp, sizeof(inp));
assert(ret == sizeof(inp));
- printf("time: %s type: %s code: %s value: 0x%x\n",
+ printf("time: %s type: %s code: %s value: 0x%x\n",
timefmt(&inp.time), type(inp.type), code(inp.code), inp.value);
}
}
diff --git a/linux/swap.html b/linux/swap.html
index 4c57a93..47995bc 100644
--- a/linux/swap.html
+++ b/linux/swap.html
@@ -195,7 +195,7 @@ mkswap /swapfile
swapon /swapfile
# Persistent setup of swap file.
-echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
+echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
# Disable swap file (until next reboot).
swapoff /swapfile
diff --git a/linux/systemd.html b/linux/systemd.html
index a553d3d..3348256 100644
--- a/linux/systemd.html
+++ b/linux/systemd.html
@@ -217,7 +217,7 @@ Description=Test logger
[Service]
Type=oneshot
-ExecStart=logger "Hello from test unit"' > ~/.config/systemd/user/test.service
+ExecStart=logger "Hello from test unit"' > ~/.config/systemd/user/test.service
# Run unit
systemctl --user start test
--
cgit v1.2.3