VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: 1 [2]

Author Topic: vl for fileserver  (Read 9525 times)

ghartl1

  • Vectorite
  • ***
  • Posts: 379
Re: vl for fileserver
« Reply #15 on: October 30, 2007, 09:27:54 am »

You will not need to mount the share.

because the shares are already mounted at boottime...i assume

does this work with apps too (openoffice save a document on this windowssahre...)
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4085
Re: vl for fileserver
« Reply #16 on: November 01, 2007, 02:38:22 pm »

Quote
You will not need to mount the share.
Konqueror takes care of all that in the background, but one problem I found on my system is that Openoffice's open/save menu only shows the file tree. I don't see access to the smb:// protocol, so some sort of automount may be preferable.

I have successfully used simple shell scripts to do this. Here is one way:

Create a file somewhere, let's say /home/user/.credentials with this content:
Code: [Select]
username=your_user_name
password=your_password

Now make a script, for example /home/user/mountsmb.sh
Code: [Select]
#! /bin/bash
smbmount -o credentials=/home/user/.credentials //IP_or_name/share /home/user/some_dir

make the script executable:
chmod +x /home/user/mountsmb.sh

You should now be able to mount your shares by executing the script. If you want it to be done automatically, just move the script to /home/user/.kde/Autostart/

« Last Edit: November 01, 2007, 02:42:03 pm by nightflier »
Logged

ghartl1

  • Vectorite
  • ***
  • Posts: 379
Re: vl for fileserver
« Reply #17 on: November 02, 2007, 04:20:57 am »

thanks nightflier..

thats what im looking for....so i dont need to athentificate  me on the other box...

have to try it for myself....

thanks again..and for your patience

greets g√ľnter
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4085
Re: vl for fileserver
« Reply #18 on: November 02, 2007, 07:15:38 pm »

Happy to be of any help.

I realized I got the syntax backwards on that script, it needs to be:
Code: [Select]
#! /bin/bash
smbmount //IP_or_name/share /home/user/some_dir -o credentials=/home/user/.credentials

Another detail, smbmnt must be installed suid, as described here:
http://www.vectorlinux.com/forum2/index.php?topic=84.0
Logged
Pages: 1 [2]