[K12OSN] Mounting SAMBA shares on a Linux workstation

Bert Rolston bert.rolston at clear.net.nz
Mon Aug 21 23:22:26 UTC 2006


Hi Petre,

Thanks for the welcome back. I've been following the list continuously
since 2001. I've been studying business for the last two years.

I've tried fusessh, and get this message

"fuse: failed to exec fusermount: Permission denied"

This happens on any folder based on the server.

I'm setting up a server for my business, and have shares for different
functional groups in the company. 
I've used Samba to force user and group on the share, files and
directories in each share.
For example user engineer (linux login disallowed), owns the engineer
folder and all files. Through SAMBA I have force user/group  = engineer.
This ensures that anyone can log in as themselves, but all files in the
engineer share are owned by engineer. By making each person a member of
group engineer they can access the files and modify them as necessary.
Global / world access is denied. This produces the SAMBA equivalent of
drwxrwx--- linux permissions, as I understand it from the Samba 3 by
example how-to.

In Linux I have the perms set to drwxrwx---, engineer:engineer, with
shell as nologin.

So I guess my security is a bit too restrictive. 

So back to the drawing board, unless you can make some other
suggestions.

Thanks,
Bert



>   25. Re: Mounting SAMBA shares on a Linux workstation (Petre Scheie)

> ------------------------------
> 
> Message: 25
> Date: Mon, 21 Aug 2006 08:12:26 -0500
> From: Petre Scheie <petre at maltzen.net>
> Subject: Re: [K12OSN] Mounting SAMBA shares on a Linux workstation
> To: "Support list for open source software in schools."
> 	<k12osn at redhat.com>
> Message-ID: <44E9B13A.9070302 at maltzen.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hey Bert, good to see you back on the list again!
> 
> As to your problem, sshfs is your friend.  It allows you, as a non-root user, to mount 
> directories from remote machines over ssh; no NFS needed.  The syntax is easy:
> 
> sshfs remotehost:/path/to/desired/directory /localmountpoint
> 
> /localmountpoint can be just a directory in your $HOME.  After you mount this, you can 
> see the contents of the remote host right in /localmountpoint.  And this works from a 
> thin client.  It is COOL!  Everything's transparent to your apps.  You can run it safely 
> across the internet since it's all ssh.  It uses fuse, which is the same component used 
> in LTSP 4.2's new improved Local Device Access.
> 
> The package you want is sshfs-fuse (or is it fuse-sshfs?  One or the other).  Do a yum 
> install on it and you'll be on your way.
> 
> Petre
> 
> Bert Rolston wrote:
> > Hey all,
> > 
> > Thanks for the help last week.
> > 
> > Now I've hit another snag.
> > 
> > I use FC5 as my OS of choice. I'm trying to open files on the Samba
> > server from Open Office. The OO file browser won't let me access the
> > network directly, the way Konqueror does. 
> > 
> > So I've come to the conclusion that I need to mount the SAMBA shares in
> > my filesystem. Great in theory, difficult in practice.
> > 
> > I've tried using the mount.cifs man pages, but they are difficult to
> > understand. 
> > 
> > The Redhat help FAQ's have useful suggestions, but it appears I can only
> > carry out the methods in their FAQ's as root.
> > 
> > I can access the files through Konqueror. Which means I have to copy the
> > file from the server to the local machine. Then I can work on it, and
> > save it locally. After that I can save back to the server. This sort of
> > defeats the purpose of a central file store / server.
> > 
> > I've also tried using NFS, but my workstation can't find the NFS server.
> > 
> > How are people on this list going about solving this problem?
> > 
> > Thanks for your help,
> > Bert
> > 
> > 
> > 
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN at redhat.com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> > 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> 
> End of K12OSN Digest, Vol 30, Issue 30
> **************************************




More information about the K12OSN mailing list