Changes

From Amahi Wiki
Jump to: navigation, search
31 bytes added ,  19:35, 8 May 2010
no edit summary
Everthing I did below is done in putty from a cli interface, Install download putty and enter you hda name or address in the address line. Login as root or "su -".
* We need to create a credential file to mount on startup:   <code>sudo nano /root/.smbcredentials</code> 
*Add the following lines:
(You must change NAS_username and NAS_password to the correct user name and password for the NAS to connect to):
<code>username=NAS_username<\/code> <code>password=NAS_password<\/code>
* Now, change the permissions of the file so only root can read and edit it:
<code> sudo chmod 700 /root/.smbcredentials</code>
* Let's back up our fstab: sudo cp /etc/fstab /etc/fstab_old
** If needed you may return to the original this way:
<code> sudo mv /etc/fstab_old /etc/fstab</code>
* Now we edit fstab:
<code> sudo nano /etc/fstab</code>
* Add this line at the end:
//server/share /var/hda/files/music cifs credentials=/root /.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
* Finally, test your settings to make sure they work:
<code> sudo mount -a</code>
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
3,789

edits