[HowTo] User dauerhaft speichern in der passwd bei Freetz-1.x.x

stimmt an das cam hab ich nicht gedacht.
wollte damit eigentlich nur was ausprobieren. ein premiereabo habe ich nämlich ganz legal, nur kann ich es nicht am PC nutzen, weil dort der CI-Slot fehlt.
 
Was soll Ich ändern ?
user.sh:
cat > /var/tmp/passwd << 'EOF'
root:x:0:0:root:/mod/root:/bin/sh
ftpuser:any:1000:0:ftp user:/var/media/ftp:/bin/sh
ftp:x:1:1:FTP account:/home/ftp:/bin/sh
User1:x:1001:1001:Linux User,,,:/var/media/ftp/uStor01/User1:/bin/sh
User2:x:1002:1002:Linux User,,,:/var/media/ftp/uStor01/User2:/bin/sh
User3:x:1003:1003:Linux User,,,:/var/media/ftp/uStor01/User3:/bin/sh
EOF
chmod 644 /var/tmp/passwd
 
Zuletzt bearbeitet:
Hi Gismo,
wenn du die Datei mit vi öffnest siehst du was u.g meint.
Sieht dann nämlich so aus:
Code:
cat > /var/tmp/passwd << 'EOF'[COLOR=Red]^M[/COLOR]
root:x:0:0:root:/mod/root:/bin/sh[COLOR=Red]^M[/COLOR]
ftpuser:any:1000:0:ftp user:/var/media/ftp:/bin/sh[COLOR=Red]^M[/COLOR]
ftp:x:1:1:FTP account:/home/ftp:/bin/sh[COLOR=Red]^M[/COLOR]
User1:x:1001:1001:Linux User,,,:/var/media/ftp/uStor01/User1:/bin/sh[COLOR=Red]^M[/COLOR]
User2:x:1002:1002:Linux User,,,:/var/media/ftp/uStor01/User2:/bin/sh[COLOR=Red]^M[/COLOR]
User3:x:1003:1003:Linux User,,,:/var/media/ftp/uStor01/User3:/bin/sh[COLOR=Red]^M[/COLOR]
EOF[COLOR=Red]^M[/COLOR]
chmod 644 /var/tmp/passwd
 
OK, Ich habe Wunschgemäß das Zip im Post #1 ersetzt.
 
Kostenlos!

Statistik des Forums

Themen
248,894
Beiträge
2,304,379
Mitglieder
378,588
Neuestes Mitglied
k3rp