Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 
AVM router allow to share the local storage from an USB stick or local USB disk  in the local network. The following page describes how to access the share from a Linux system.
 

First of all install smbfs 

 
sudo apt-get install smbfs
 
Now create following line in /etc/fstab:
 
//192.168.0.1/Serverix/ /media/fritz    cifs    noauto,noatime,user,utf8,umask=000,uid=1000,gid=1000,credentials=/etc/samba/auth.192.168.0.1.ftpuser 0 0
 
Assumptions: AVM router has IP 192.168.0.1, the server name is Serverixand the drirectory which should be shared is called /media/fritz.
 
Now the access credentials have to be defined in  /etc/samba/auth.192.168.0.1:
 
username=ftpuser
password=secret
 
In this example the ftp password is secret. To protect this password change the access rights so only root is able to read the password:
 
sudo chmod 600 /etc/samba/auth.192.168.0.1.ftpuser
 
Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. All comments are reviewed manually and it usually takes one day until a comment will be published.
  2. Comments with string http are rejected with message You have no rights to use this tag.
  3. You have to wait at least one hour until you can post another comment.