sudo chown -R <insert your user name here> .
chmod +x dmenu_run
chmod +x dmenu_path
Acanthus:/home/d0/dmenu$ sudo chown -R d0 .
Acanthus:/home/d0/dmenu$ chmod -x dmenu_run
Acanthus:/home/d0/dmenu$ chmod -x dmenu
Acanthus:/home/d0/dmenu$ ./dmenu
bash: ./dmenu: Permission denied
Acanthus:/home/d0/dmenu$ ls -l
total 152
-rw-r--r-- 1 d0 root 1011 Jul 25 13:53 arg.h
-rw-r--r-- 1 d0 root 892 Jul 25 13:53 config.def.h
-rw-r--r-- 1 d0 root 892 Jul 26 15:20 config.h
-rw-r--r-- 1 d0 root 846 Jul 25 14:50 config.mk
-rw-r--r-- 1 d0 root 19424 Jul 26 15:20 dmenu
-rw-r--r-- 1 d0 root 2765 Jul 25 13:53 dmenu.1
-rw-r--r-- 1 d0 root 16711 Jul 25 13:53 dmenu.c
-rw-r--r-- 1 d0 root 13308 Jul 26 15:20 dmenu.o
-rw-r--r-- 1 d0 root 294 Jul 25 13:53 dmenu_path
-rw-r--r-- 1 d0 root 58 Jul 25 13:53 dmenu_run
-rw-r--r-- 1 d0 root 9902 Jul 25 13:53 drw.c
-rw-r--r-- 1 d0 root 1659 Jul 25 13:53 drw.h
-rw-r--r-- 1 d0 root 6632 Jul 26 15:20 drw.o
-rw-r--r-- 1 d0 root 1442 Jul 25 13:53 LICENSE
-rw-r--r-- 1 d0 root 2130 Jul 25 13:53 Makefile
-rw-r--r-- 1 d0 root 475 Jul 25 13:53 README
-rwxr-xr-x 1 d0 root 5960 Jul 26 15:20 stest
-rw-r--r-- 1 d0 root 1530 Jul 25 13:53 stest.1
-rw-r--r-- 1 d0 root 3229 Jul 25 13:53 stest.c
-rw-r--r-- 1 d0 root 3304 Jul 26 15:20 stest.o
-rw-r--r-- 1 d0 root 482 Jul 25 13:53 util.c
-rw-r--r-- 1 d0 root 305 Jul 25 13:53 util.h
-rw-r--r-- 1 d0 root 1236 Jul 26 15:20 util.o
Acanthus:/home/d0/dmenu$ ./dmenu_run: line 2: dmenu_path: Permission denied
Xlib: extension "XINERAMA" missing on display ":0.0".
Acanthus:/home/d0/dmenu$ ls -l
total 152
-rw-r--r-- 1 d0 root 1011 Jul 25 13:53 arg.h
-rw-r--r-- 1 d0 root 892 Jul 25 13:53 config.def.h
-rw-r--r-- 1 d0 root 892 Jul 26 15:20 config.h
-rw-r--r-- 1 d0 root 846 Jul 25 14:50 config.mk
-rwxr-xr-x 1 d0 root 19424 Jul 26 15:20 dmenu
-rw-r--r-- 1 d0 root 2765 Jul 25 13:53 dmenu.1
-rw-r--r-- 1 d0 root 16711 Jul 25 13:53 dmenu.c
-rw-r--r-- 1 d0 root 13308 Jul 26 15:20 dmenu.o
-rw-r--r-- 1 d0 root 294 Jul 25 13:53 dmenu_path
-rwxr-xr-x 1 d0 root 58 Jul 25 13:53 dmenu_run
-rw-r--r-- 1 d0 root 9902 Jul 25 13:53 drw.c
-rw-r--r-- 1 d0 root 1659 Jul 25 13:53 drw.h
-rw-r--r-- 1 d0 root 6632 Jul 26 15:20 drw.o
-rw-r--r-- 1 d0 root 1442 Jul 25 13:53 LICENSE
-rw-r--r-- 1 d0 root 2130 Jul 25 13:53 Makefile
-rw-r--r-- 1 d0 root 475 Jul 25 13:53 README
-rwxr-xr-x 1 d0 root 5960 Jul 26 15:20 stest
-rw-r--r-- 1 d0 root 1530 Jul 25 13:53 stest.1
-rw-r--r-- 1 d0 root 3229 Jul 25 13:53 stest.c
-rw-r--r-- 1 d0 root 3304 Jul 26 15:20 stest.o
-rw-r--r-- 1 d0 root 482 Jul 25 13:53 util.c
-rw-r--r-- 1 d0 root 305 Jul 25 13:53 util.h
-rw-r--r-- 1 d0 root 1236 Jul 26 15:20 util.o
sudo chmod +x dmenu_path
Acanthus:~/dmenu$ ls -l
total 152
-rw-r--r-- 1 d0 root 1442 Jul 25 13:53 LICENSE
-rw-r--r-- 1 d0 root 2130 Jul 25 13:53 Makefile
-rw-r--r-- 1 d0 root 475 Jul 25 13:53 README
-rw-r--r-- 1 d0 root 1011 Jul 25 13:53 arg.h
-rw-r--r-- 1 d0 root 892 Jul 25 13:53 config.def.h
-rw-r--r-- 1 d0 root 892 Jul 26 15:20 config.h
-rw-r--r-- 1 d0 root 846 Jul 25 14:50 config.mk
-rwxr-xr-x 1 d0 root 19424 Jul 26 15:20 dmenu
-rw-r--r-- 1 d0 root 2765 Jul 25 13:53 dmenu.1
-rw-r--r-- 1 d0 root 16711 Jul 25 13:53 dmenu.c
-rw-r--r-- 1 d0 root 13308 Jul 26 15:20 dmenu.o
-rwxr-xr-x 1 d0 root 294 Jul 25 13:53 dmenu_path
-rwxr-xr-x 1 d0 root 58 Jul 25 13:53 dmenu_run
-rw-r--r-- 1 d0 root 9902 Jul 25 13:53 drw.c
-rw-r--r-- 1 d0 root 1659 Jul 25 13:53 drw.h
-rw-r--r-- 1 d0 root 6632 Jul 26 15:20 drw.o
-rwxr-xr-x 1 d0 root 5960 Jul 26 15:20 stest
-rw-r--r-- 1 d0 root 1530 Jul 25 13:53 stest.1
-rw-r--r-- 1 d0 root 3229 Jul 25 13:53 stest.c
-rw-r--r-- 1 d0 root 3304 Jul 26 15:20 stest.o
-rw-r--r-- 1 d0 root 482 Jul 25 13:53 util.c
-rw-r--r-- 1 d0 root 305 Jul 25 13:53 util.h
-rw-r--r-- 1 d0 root 1236 Jul 26 15:20 util.o
PATH=$(pwd):$PATH ./dmenu_path
Acanthus:/media/RUBICON/test/dmenu$ sudo chown -R d0 .
Password:
chown: changing ownership of `./.git/refs/heads/master': Operation not permitted
chown: changing ownership of `./.git/refs/heads': Operation not permitted
chown: changing ownership of `./.git/refs/tags': Operation not permitted
chown: changing ownership of `./.git/refs/remotes/origin/HEAD': Operation not permitted
chown: changing ownership of `./.git/refs/remotes/origin': Operation not permitted
chown: changing ownership of `./.git/refs/remotes': Operation not permitted
chown: changing ownership of `./.git/refs': Operation not permitted
chown: changing ownership of `./.git/info/exclude': Operation not permitted
chown: changing ownership of `./.git/info': Operation not permitted
chown: changing ownership of `./.git/hooks/commit-msg.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/pre-rebase.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/post-update.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/update.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/applypatch-msg.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/pre-commit.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/post-receive.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/pre-applypatch.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/prepare-commit-msg.sample': Operation not permitted
chown: changing ownership of `./.git/hooks/post-commit.sample': Operation not permitted
chown: changing ownership of `./.git/hooks': Operation not permitted
chown: changing ownership of `./.git/description': Operation not permitted
chown: changing ownership of `./.git/branches': Operation not permitted
chown: changing ownership of `./.git/objects/pack/pack-771489359f245e05e8c1dce68a57251f46f9d6ca.pack': Operation not permitted
chown: changing ownership of `./.git/objects/pack/pack-771489359f245e05e8c1dce68a57251f46f9d6ca.idx': Operation not permitted
chown: changing ownership of `./.git/objects/pack': Operation not permitted
chown: changing ownership of `./.git/objects/info': Operation not permitted
chown: changing ownership of `./.git/objects': Operation not permitted
chown: changing ownership of `./.git/HEAD': Operation not permitted
chown: changing ownership of `./.git/config': Operation not permitted
chown: changing ownership of `./.git/logs/refs/heads/master': Operation not permitted
chown: changing ownership of `./.git/logs/refs/heads': Operation not permitted
chown: changing ownership of `./.git/logs/refs': Operation not permitted
chown: changing ownership of `./.git/logs/HEAD': Operation not permitted
chown: changing ownership of `./.git/logs': Operation not permitted
chown: changing ownership of `./.git/packed-refs': Operation not permitted
chown: changing ownership of `./.git/index': Operation not permitted
chown: changing ownership of `./.git': Operation not permitted
chown: changing ownership of `./LICENSE': Operation not permitted
chown: changing ownership of `./Makefile': Operation not permitted
chown: changing ownership of `./README': Operation not permitted
chown: changing ownership of `./arg.h': Operation not permitted
chown: changing ownership of `./config.def.h': Operation not permitted
chown: changing ownership of `./config.mk': Operation not permitted
chown: changing ownership of `./dmenu.1': Operation not permitted
chown: changing ownership of `./dmenu.c': Operation not permitted
chown: changing ownership of `./dmenu_path': Operation not permitted
chown: changing ownership of `./dmenu_run': Operation not permitted
chown: changing ownership of `./drw.c': Operation not permitted
chown: changing ownership of `./drw.h': Operation not permitted
chown: changing ownership of `./stest.1': Operation not permitted
chown: changing ownership of `./stest.c': Operation not permitted
chown: changing ownership of `./util.c': Operation not permitted
chown: changing ownership of `./util.h': Operation not permitted
chown: changing ownership of `./config.h': Operation not permitted
chown: changing ownership of `./dmenu.o': Operation not permitted
chown: changing ownership of `./drw.o': Operation not permitted
chown: changing ownership of `./util.o': Operation not permitted
chown: changing ownership of `./dmenu': Operation not permitted
chown: changing ownership of `./stest.o': Operation not permitted
chown: changing ownership of `./stest': Operation not permitted
chown: changing ownership of `.': Operation not permitted
cd /media/RUBICON/
mkdir sources
sudo chown d0:d0 sources
cd sources
git blablabla....
Acanthus:/media/RUBICON$ sudo chown d0:d0 sources
Password:
chown: changing ownership of `sources': Operation not permitted
If you can't change file rights and ownership as root, it's either because they can't be changed (e.g. mounted read-only) or they don't even exist in the first place - FAT32 has no support for such attributes.Why would it give me grief on my SD card?