Re: smbmount command w/o password
Mark Schouten sez:
} On Mon, Mar 03, 2003 at 03:39:02PM +0100, Willem-Jan Meijer wrote:
} > Hello,
} >
} > ATM the line //WILLEM-JAN/muziek /muziek smbfs ro,uid=1000,gid=1000
} > is in fstab, but when I reboot this directory isn't mounted because
} > there's asked for a password, but I don't need to give a password. Is
} > there a way to set this line so that I'm not asked for a password?
}
} Yes, make the line as follows:
}
} //WILLEM-JAN/muziek /muziek smbfs ro,uid=1000,gid=1000,username=XXXXX,password=XXXXX
}
} But, this does take a security issue with it. Your password is readable
} in your fstab.
This can be avoided by using a credentials file, e.g.:
//WILLEM-JAN/muziek /muziek smbfs ro,uid=1000,gid=1000,credentials=/usr/etc/credentials/muziek
This requires that the file /usr/etc/credentials/muziek contains:
username = XXXXXX
password = XXXXXX
...but the file and, indeed, the credentials directory can be root-only
readable.
} Greetz,
} Mark
--Greg
Reply to: