LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-05-2016, 01:51 PM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Rep: Reputation: Disabled
script to auto mount network drives


hi all,

i want to create a login script for when my ulteo users login to their virtual desktops via MS domain credentials (i have enabled on the server AD intergration) i want them to be able to so when they see their virtual desktops their network drives come up aswell on the desktop

i was thinking in something like this

mount -t cifs -o username=(var),password=(var),domain=example.com //WIN_PC_IP/ /mnt/(var)

but i want to include variables for username, password and the where to mount to

can this be accomplished

many thanks,

rob
 
Old 03-06-2016, 06:52 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
have you tried the automounter? (see man automount, autofs)
 
Old 03-06-2016, 08:44 AM   #3
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
But thats not a script you have to change alot of config files and make a directory

I dont get what you mean
 
Old 03-06-2016, 10:59 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
automount is used to do that, using current user's credentials, but I still do not know if those virtual desktops are running linux or windows.
It is not a script, it will work automatically, mount drives on demand, if the user tries to access its content.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
auto mount network drives at start up sideburns05 Linux - Newbie 7 08-13-2015 06:31 AM
Auto mount drives? stratotak Linux - Newbie 2 08-09-2013 02:15 AM
Auto mount internal drives AGazzaz SUSE / openSUSE 4 04-25-2013 02:03 AM
[SOLVED] Want to run a script that needs root [to mount network drives] privilege as user DiBosco Programming 6 02-27-2013 06:50 AM
auto mount removable drives mallyooh Slackware 6 05-09-2006 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:07 PM.

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