Ich verwende Ubuntu Server 10.04 LTS und habe vor Kurzem per apt-get ein Upgrade auf die neuesten Versionen von Samba und SMBFs durchgeführt. Wenn ich nun unsere Windows-Freigabe per SMB mounte, erhalte ich folgende Art von Fehler:
root@orbital testsmb/test# mkdir "spaces test"
root@orbital testsmb/test# ll
total 5
drwxr-xr-x 3 nobody nobody 0 Aug 4 17:32 .
drwxr-xr-x 37 nobody nobody 0 Aug 4 17:24 ..
drwxr-xr-x 0 nobody nobody 4096 Aug 4 17:32 spaces test
root@orbital testsmb/test# cd spaces\ test/
dirname: extra operand `test'
Try `dirname --help' for more information.
dirname: missing operand
Try `dirname --help' for more information.
-su: [: =: unary operator expected
basename: missing operand
Try `basename --help' for more information.
root@orbital /spaces# pwd
/home/testsmb/test/spaces test
dirname: extra operand `test'
Try `dirname --help' for more information.
dirname: missing operand
Try `dirname --help' for more information.
-su: [: =: unary operator expected
basename: missing operand
Try `basename --help' for more information.
Auch die Verwendung von einfachen und doppelten Anführungszeichen funktioniert nicht:
root@orbital /spaces# cd ..
root@orbital testsmb/test# cd "spaces test"
dirname: extra operand `test'
Try `dirname --help' for more information.
dirname: missing operand
Try `dirname --help' for more information.
-su: [: =: unary operator expected
basename: missing operand
Try `basename --help' for more information.
root@orbital /spaces# cd ..
root@orbital testsmb/test# cd 'spaces test'
dirname: extra operand `test'
Try `dirname --help' for more information.
dirname: missing operand
Try `dirname --help' for more information.
-su: [: =: unary operator expected
basename: missing operand
Try `basename --help' for more information.
Hier ist meine bereinigte /etc/fstab:
//192.168.xx.xx/winshare /home/testsmb smbfs rw,credentials=/etc/samba/winshare.creds,uid=nobody,gid=nobody,auto 0 0
- Nichts davon geschieht auf lokalen Dateisystemen.
- Auch eine ältere SuSE-Box mit einem alten smbfs hat diese Probleme nicht.
Antwort1
Sie haben einen defekten Alias für den Befehl „cd“, der versucht, etwas mit dirname
und zu tun su
. Korrigieren oder entfernen Sie den defekten Alias.