ALT Linux Bugzilla
– Attachment 2752 Details for
Bug 16533
fat fs: не сообщает об ошибке при невозможности сменить права
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
test-dir-perms_rw.sh
test-dir-perms_rw.sh (text/plain), 469 bytes, created by
Ivan Zakharyaschev
on 2008-08-03 01:51:46 MSD
(
hide
)
Description:
test-dir-perms_rw.sh
Filename:
MIME Type:
Creator:
Ivan Zakharyaschev
Created:
2008-08-03 01:51:46 MSD
Size:
469 bytes
patch
obsolete
>#!/bin/bash > >if [[ "$1" && "$2" ]]; then > readonly USER1="$1" USER2="$2" >else > echo $"Two users should be specified by the 1st and the 2nd arguments." > /dev/stderr > exit 1 >fi > >set -ex # Exit on failures and echo what is done. > ># Clean up: >rmdir rw-dir ||: > ># Show perms for the working dir: >ls -ld . > ># Prepare: >su -c 'mkdir -p rw-dir' "$USER1" >su -c 'chmod a+w rw-dir' "$USER1" >ls -ld rw-dir > ># Try to modify: >su -c 'chmod a-w rw-dir' "$USER2" >ls -ld rw-dir
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 16533
: 2752