
Originally Posted by
pumpman
woot managed to get the linux laptop to wake up the windows pc upstairs
walls i was looking at the code you posted above thankyou, if it were just me that was to use the share as admin how would i do that ?
ie the pc is called simon-pc, the folder that i have shared is called downloads its on the workgroup and the user name is simon
thanks
well, you would add a line to /etc/fstab on the linux box that looked something like:
Code:
//simon-pc/downloads /home/simon/windows-share cifs credentials=/etc/samba/private/credentials_file,rw,nobrl,_netdev,uid=1000 0 0
or
Code:
//simon-pc/downloads /home/simon/windows-share cifs username=simon,password=mypassword,rw,nobrl,_netdev,uid=1000 0 0
Your linux box needs to be able to resolve "simon-pc", usually via either netbios, DNS or local hosts file (beware of DHCP) and the folder /home/simon/windows-share can be anything you want (but needs to exist and your user needs to have the relevant permissions on it - e.g. you can't mount your share on /mnt and expect to be able to write to it, so it's best in your home folder).
The credentials file is usually the preferred method (owned by root with 600 permissions), but you can use the second method if you want, however this does mean that your username and password (for the windows box) are saved in clear text and readable by any user on the linux box.
You can check your uid in /etc/passwd: it will be in the form <username>:<shadow_placeholder>:<uid>:etc:etc