Something is very wrong with crypto world when it meets Linux/*nix

in #linux7 years ago (edited)

What can i say, this one is real stupid and bad mistake...

1openlabtools.jpg

It screenshot of one of repository of Cambridge OpenLabTools (yes, you read it right, that Cambridge) in github (reference: https://bitcointalk.org/index.php?topic=1707546.msg21134487#msg21134487 ).

What so wrong is:

chmod a+x simple_bash.sh //Make it executable

Right after it was created, every new file should have 644 permission, with above command, file permission become 755, so above command is normal although it can be achieve also with just:

chmod +x

Next command is where stupidity comes into place:

chmod 777 simple_bash.sh //Give it root rights (saves you to write sudo every time)

Above command change file permission (again), and makes it readab;e, executable, and writeable by the whole world, and the comment is not less ridiculous:

Give it root rights (saves you to write sudo every time)

It's wrong statement on all aspects:

  1. anyone who access that file will not be granted root's rights
  2. running a program as a normal user is totally different with sudo (run with rood rights)

RTFM, learn some more before you code, make howto, or anything related to Linux/*nix, don't just take a shortcut, you might hurt yourself and/or others...

Sort:  

I see what that has to do with raspberry pi. What does that have to do with crypto?

Congratulations @wimmvg! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @wimmvg! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 3 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 63343.26
ETH 3484.52
USDT 1.00
SBD 2.53