#58 Spurious Error Message: permissions are not safe

closed
nobody
None
1
2012-01-26
2012-01-25
Sys Admn
No

Under OL 6.2 / RHEL 6.2, duply gives a spurious error message:
WARNING:

The profile's folder
'/home/username/.duply/PROFILE'
permissions are not safe (drwx------.). Secure them now. - (OK)

When an SEL context exists, GNU ls appends a "." to the mode string; duply is comparing "drwx------" and "drwx------." and issuing the warning. In some cases (filesystem acls) GNU ls appends a "+" instead.

Suggested fixes:
Compare against "drwx------[.+ \t]" or use "cut" to grab the first 10 characters: " local PERMS="$(ls -lda "$CONFDIR/." | cut -c 1-10". Note the ls -lda to select only the directory.

Discussion

  • Sys Admn

    Sys Admn - 2012-01-25
    • priority: 5 --> 1
     
  • ede

    ede - 2012-01-26

    >Suggested fixes:
    >Compare against "drwx------[.+ \t]" or use "cut" to grab the first 10 characters: " local PERMS="$(ls -lda "$CONFDIR/." | cut -c 1-10". Note the ls -lda to select only the directory.

    why would i need ls -lda .. ls -la dir/. asks explicitely for the directory already... i'll check if the entry contains 'drwx------'. that should suffice shouldn't it?

    thanks ede

     
  • ede

    ede - 2012-01-26
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks