Cannot delete file as normal user
Hi folks, i want to delete a file as normal user, but i fail to do it... As normal user (on an ubuntu 12.04) I do: mkdir d1 d2 home; touch home/f1 sudo mount -t aufs -o br=d1:home none d2 everything is fine now, until: rm d2/f1 -- I get: not possible, operation not permitted (freely translated from German) however, after that I do: sudo rm d2/f1 -- works fine!!! sudo umount d2 Why can't normal user do what root can? Thanks in advance Markus -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev
Re: Cannot delete file as normal user
Have you created the file as root? Then it's probably owned by root, and the normal user simply lacks permissions to delete it. On Mon, Jul 8, 2013 at 12:06 AM, Markus Weich [1]markus.we...@gmx.de wrote: Hi folks, i want to delete a file as normal user, but i fail to do it... As normal user (on an ubuntu 12.04) I do: mkdir d1 d2 home; touch home/f1 sudo mount -t aufs -o br=d1:home none d2 everything is fine now, until: rm d2/f1 -- I get: not possible, operation not permitted (freely translated from German) however, after that I do: sudo rm d2/f1 -- works fine!!! sudo umount d2 Why can't normal user do what root can? Thanks in advance Markus -- This SF.net email is sponsored by Windows: Build for Windows Store. [2]http://p.sf.net/sfu/windows-dev2dev -- Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-) References 1. mailto:markus.we...@gmx.de 2. http://p.sf.net/sfu/windows-dev2dev -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev
Re: Cannot delete file as normal user
G bor Stefanik: Have you created the file as root? Then it's probably owned by root, and the normal user simply lacks permissions to delete it. If you have a write permisstion for the parent dir, you can remove the file even if the file is owned by root or readonly. The point is not the permission of the file. It is the parent dir's permission. This is a generic semantics of unix filesystems. Markus Weich: mkdir d1 d2 home; touch home/f1 sudo mount -t aufs -o br=d1:home none d2 everything is fine now, until: rm d2/f1 -- I get: not possible, operation not permitted (freely translated from German) I'd suggest you to check the parent dir's permission bits on every branch. $ ls -ld d1 home d2 Next time you post a mail about the problem, I need these info. (from the aufs README file) 5. Contact When you have any problems or strange behaviour in aufs, please let me know with: - /proc/mounts (instead of the output of mount(8)) - /sys/module/aufs/* - /sys/fs/aufs/* (if you have them) - /debug/aufs/* (if you have them) - linux kernel version if your kernel is not plain, for example modified by distributor, the url where i can download its source is necessary too. - aufs version which was printed at loading the module or booting the system, instead of the date you downloaded. - configuration (define/undefine CONFIG_AUFS_xxx) - kernel configuration or /proc/config.gz (if you have it) - behaviour which you think to be incorrect - actual operation, reproducible one is better - mailto: aufs-users at lists.sourceforge.net J. R. Okajima -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev
aufs3 GIT release
o bugfix - retval from au_pin() call in au_file_refresh_by_inode() o news - linux-3.10 is released and a branch aufs3.10 is created J. R. Okajima -- - aufs3-linux.git aufs: bugfix, retval from au_pin() call in au_file_refresh_by_inode() aufs: tiny, new copy-up wrapper with h_open_pre/post() - aufs3-standalone.git ditto - aufs-util.git none -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev