VectorLinux
December 20, 2014, 06:17:07 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2]
  Print  
Author Topic: vl for fileserver  (Read 9184 times)
ghartl1
Vectorite
***
Posts: 379


« Reply #15 on: October 30, 2007, 08: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: 4038



« Reply #16 on: November 01, 2007, 01: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:
username=your_user_name
password=your_password

Now make a script, for example /home/user/mountsmb.sh
Code:
#! /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, 01:42:03 pm by nightflier » Logged
ghartl1
Vectorite
***
Posts: 379


« Reply #17 on: November 02, 2007, 03: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: 4038



« Reply #18 on: November 02, 2007, 06:15:38 pm »

Happy to be of any help.

I realized I got the syntax backwards on that script, it needs to be:
Code:
#! /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]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!