Open ruebenramirez opened 8 years ago
if you want to umount
a mounted volume, make sure that you cd
out of the mounted dir on all your terminal sessions or you'll get a nice little error message:
target is busy (In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
cifs-utils
package installed
sudo apt install cifs-utils
noperm
option if you want to allow all users to write to this mounted sharenoperm
to the comma-delimited options list (read: no whitespace)These permissions are probably too relaxed, but I was able to mount some windows storage and write to it as a non-root user by adding this line to the end of my /etc/fstab
:
//host/share-name /mnt/share-mount-directory cifs credentials=/home/user/.Smbcredentials,noperm,guest,uid=1000,iocharset=utf8 0 0
mount a windows share
create a mount directory
create a credentials file:
contents of
~/.Smbcredentials
mount the share
troubleshooting
verbose mount
If you're having problems try using the
-v
(verbose) feature of the mount command:Check credentials with
smbclient
Try checking your password with smbclient
test your username and credentials with:
smbclient will prompt you for a password
or you can delimit your credentials with a
%
(this will display your password in plaintext on the command line interface...and also in your shell history file)