
Am Wed, 30 Jun 2010 23:23:09 +0200 schrieb Sebastian Reinhardt <snr@lmv-hartmannsdorf.de>:
Am 30.06.2010 23:00, schrieb Al Bogner:
Grundsätzlich funktiniert das in der fstab:
//192.168.2.100/digital_smb /digital2 cifs username=user,password=123,_netdev 0 0
Mir gefällt es aber gar nicht, hier das Passwort im Klartext einzutragen. Das PW für den Linux-User und den Samba-User kann ident sein.
Wie kann man das lösen?
Al
Sehr einfach: Trag das in /etc/samba/smbfstab ein und schon kommt da nur noch "root" ran (diese Datei hat normalerweise entsprechende Lese-/ Schreibrechte von Haus aus!).
Das gefällt mir auch noch nicht so besonders. man mount.cifs user=arg specifies the username to connect as. If this is not given, then the environment variable USER is used. This option can also take the form "user%password" or "workgroup/user" or "workgroup/user%password" to allow the password and workgroup to be specified as part of the username. The variable USER may contain the username of the person to be used to authenticate to the server. The variable can be used to set both username and password by using the format username%password Ist so etwas möglich? //192.168.2.100/digital_smb /digital2 cifs _netdev 0 0 Dieser Eintrag in /etc/samba/cifstab reicht bei mir nicht aus. Es gibt am Samba-Server für samba einen user root. pdbedit -L | grep root root:0:root Linux und Samba-PW ist ident, also sollte doch da eine Verbindung möglich sein, oder? Al -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org