Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-11-2011, 06:04 PM   #1
LQ Newbie
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
Smile Some do and some don't


I have used Linux on and off over the past 15 years. Linux has been the solution to a lot of my networking problems over the years. I work in a school and I am keen to setup Linux labs for the students. Users can logon with their active directory [Micoroft accounts] and can access their files off server drives. All this is made easy with the help of CentrifyDC. I can simply access a network share and CentrifyDC handles the authentication.

My issue is that some applications will see mounted samba shares and some applications won't. For example I can open and save files to my Windows servers using applications such as Openoffice, Gnumeric, Abiword. However apps like DIA will only show local drives. Maybe some applications use the default file manager where the mounts are bookmarked whilst other use their own file manager?

Does anyone know a way around this?

Last edited by Devlin7; 07-11-2011 at 06:14 PM.
Old 07-11-2011, 06:33 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Mount the shares at fixed locations in the filesystem ? .. as this is at the filesystem level it would be supported by all applications, you could also use autofs for the home directories

/shared ->
/home/<user> -><user>
Old 07-11-2011, 06:35 PM   #3
LQ Newbie
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled

Thanks for the prompt reply. Are you saying that the /home/user folder can actually be a network location as well?

I don't think the mount command is my solution. Granted it mounts the network location locally but I need to manually specify a username and password for the mount. I work in a school and we can have 1300 users on each machine, it really needs to be automated.

A user logs on and they get two network drives 1) Their personal home drive based on a windows server and 2) a network share also on a windows server


Last edited by Devlin7; 07-11-2011 at 06:49 PM.
Old 07-12-2011, 08:38 PM   #4
LQ Newbie
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
It turns out that pcmanfm is automounting the files locally for me in a hidden folder called .gvfs under each users home folder.

Now all I need is a bookmark to the local folder /home/$USER/.gvfs

Ok I have taken an easier approach
Create a file called in /etc/profile.d and make it executable with the following in it
echo smb://server/share “N_Drive” >> /home/$USER/.gtk-bookmarks
echo smb://server/$USER$ “P_Drive” >> /home/$USER/.gtk-bookmarks
echo file:///home/$USER/.gvfs "Network Drives" >> /home/$USER/.gtk-bookmarks

So in Nautilus or PCMANFM there are bookmarks for my P or N drive. Now some applications can see server shares and others can't. You can access the server shares from the dud applications by accessing the bookmark "Network Drives" which points to the local location ie the hidden .gvfs folder under each users home folder.
Works a treat

Last edited by Devlin7; 07-12-2011 at 09:29 PM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't laugh, I don't know, updating drivers question Lola Kews SUSE / openSUSE 4 02-15-2008 04:41 PM
Samba - don't display shares if you don't have permissions? kailun Linux - Server 3 05-07-2007 07:00 PM
Some Menu Icons don't appear in GNOME if I don't install KDE - How can I fix it? doraimom Linux - Desktop 4 04-14-2007 01:37 AM
A request: please don't reply to topics if you don't know the answer vharishankar General 17 04-10-2006 09:50 PM
Suse dontīt boot X; donīt ask for root passwd, YAST donīt work... carrie Linux - Newbie 4 10-08-2004 07:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration