[Fedora-livecd-list] how to set root password?
Cain, Brian (GE Healthcare)
Brian.Cain at ge.com
Tue Apr 10 17:51:55 UTC 2007
> -----Original Message-----
> From: fedora-livecd-list-bounces at redhat.com
> [mailto:fedora-livecd-list-bounces at redhat.com] On Behalf Of
> pseudo vector
...
> Oh man, am I stupid. No I didn't try on an existing system, so sure
> was I that I had done everything right. I just did it though and found
> sure enough that the same encrypted pw doesn't work on another fc6
> system. The problem? I use a shell script to encrypt the passwords.
> The password I'm trying to use has a $ in it. The shell expanded that
> $ and the subsequent text as a variable, since it didn't exist it
BTW, for bash scripts, you can avoid this problem by quoting your here
doc delimiter. If it's quoted, bash will not do variable expansion.
Copy/paste these into a bash shell and see for yourself.
cat <<'EOF'
test $one $two $three
EOF
cat <<EOF
test $one $two $three
EOF
BTW, I've thought about submitting a patch for mayflower to help
mitigate things like "shell quoting will be the death of me" but I keep
not getting around to it. One of these days, I guess... :/
-Brian
More information about the Fedora-livecd-list
mailing list