Initial commit
This commit is contained in:
9
kapitel11/sidan_188_ex1.sh
Normal file
9
kapitel11/sidan_188_ex1.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
filnamn="/etc/passwd"
|
||||
if [ -w $filnamn ]; then
|
||||
echo "Du har skrivrättigheter till passwd-filen"
|
||||
echo "Då är du förmodligen root..."
|
||||
else
|
||||
echo "Du har inte skrivrättigheter till passwd-filen"
|
||||
fi
|
Reference in New Issue
Block a user