Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#13 gprename cannot read folder with ACL permission

v1.0_(example)
open
nobody
None
5
2014-03-25
2014-03-25
Zurd
No

Linux Mint create, by default, /media/USERNAME which is owned by root:root but gives a r-x permission to USERNAME through ACL. GPRename cannot enter this folder, says permission denied.

However it works if you use "sudo gprename /media/USERNAME".

ls -l /media
total 4.0K
drwxr-x---+ 4 root root 4.0K Mar 25 02:24 USERNAME

The + sign indicates it has ACL.

getfacl /media/USERNAME
# owner: root
# group: root
user::rwx
user:USERNAME:r-x
group::---
mask::r-x
other::---

Other software can read in the folder, GPRename cannot. A simple Perl script can read the content but gtk2-perl cannot.

Simple perl script test:
#!/usr/bin/perl

use strict;
use warnings;

my $directory = '/media/USERNAME/';

opendir(DIR, $directory) or die $!;

while (my $file = readdir(DIR)) {
print $file . "\n";
}

closedir(DIR)

Discussion