175 reputation
17
bio website snipt.net/metalcoder
location Brazil
age 31
visits member for 1 year, 5 months
seen Dec 15 at 16:08

Just an Average Joe which aspires to code games someday!


Jul
1
awarded  Notable Question
Jun
18
awarded  Caucus
Jun
2
accepted Can't install GRUB, no matter what
May
31
comment Can't install GRUB, no matter what
@NoTime boot-repair did the trick. Thank you! Can you write a proper answer, in order for me to upvote you?
May
31
asked Can't install GRUB, no matter what
Mar
27
awarded  Nice Question
Jan
27
awarded  Popular Question
Jul
10
awarded  Scholar
Jul
10
accepted How to check if a user can access a given file?
Jul
10
comment How to check if a user can access a given file?
@EvanTeitelman it worked, thanks!
Jul
10
awarded  Supporter
Jul
10
comment How to check if a user can access a given file?
@rush it worked! That extra exclamation negates the result of -r $FILE, right?
Jul
10
comment How to check if a user can access a given file?
@rush I tried to test it using the following file: /root/test/test.txt (permissions are 0755, 0700, and 0777). I issued ./script.sh /root/test/test.txt joe and it echoed original file /root/test/test.txt is readable for joe. Also, while trying this I misstyped the test dir: ./script.sh /root/tst/test.txt joe, and it echoed original file /root/tst/test.txt is readable for joe. Did I missed something?
Jul
10
comment How to check if a user can access a given file?
@EvanTeitelman I tried to test it using the following file: /root/test/test.txt (permissions are 0755, 0700, and 0777). I issued sudo -u joe ./check-permissions.sh /root/test/test.txt, and nothing happened. Did I missed something?
Jul
9
awarded  Student
Jul
9
asked How to check if a user can access a given file?
Jul
9
awarded  Autobiographer