LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2011, 01:17 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Rep: Reputation: 60
Mounting a standard user, windows share at login


My weekly stupid question of the week.

I know how to mount my share via /etc/fstab automatically when the system boots but since I do not have root permission to access the /etc/fstab nor do I think that the system admin wants me to add an entry in /etc/fstab all together. So what file could I add my mount entry in?


Code:
mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver
.profile ??

How can this be done for multiple users with different shares.

Last edited by metallica1973; 12-01-2011 at 01:22 PM.
 
Old 12-01-2011, 03:08 PM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
This still requires root access but shows promise, AutoFS:

https://help.ubuntu.com/community/Autofs


http://wiki.centos.org/TipsAndTricks... - CentOS Wiki

AutoFS appears to be more a more efficient way of conserving bandwidth as well but I have never used it before

Last edited by metallica1973; 12-01-2011 at 03:09 PM.
 
Old 12-01-2011, 04:22 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,900

Rep: Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294Reputation: 4294
Depends on your requirements but Nautilus has a built in smb client so you access files without having to use the mount command.
 
Old 12-01-2011, 05:08 PM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
thank you for the reply:

I guess I should have clarified a little bit from the start but my intentions are to mount the scripts at boot so it appears that really the best options is to add your mount to /etc/fstab.

Code:
//testserver/testuser /media/caca cifs credentials=/home/testuser/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,auto  0  0

//testserver/share /media/testshare cifs credentials=/home/testuser/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,auto  0  0
If you wanted to add the mount when you run a terminal, then you could call a script from the ~/.bashrc. Just wanted to add this comment to the forum in case other people are interested:

I could create a scripts that mounts the windows share:

Code:
#!/bin/bash
mount -t cifs //rscserv01/testuser/testuser\ backups -o credentials=/home/testuser/.smbcredentials /media/testmount
...
...
...
...
then call the script from ~/.bashrc or /etc/profile.d so that when I login via a terminal or ssh, it would automatically mount the windows share.I am unsure if you use a GUI like GNOME or KDE ??
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Windows share with a space in the share name Suncoast Linux - Networking 1 06-19-2009 10:15 AM
Mounting Windows share leupi Linux - Server 10 04-12-2008 08:36 AM
Mounting A Smb Share At Login - For Domain Users nm2588 Linux - Networking 3 12-07-2006 10:05 AM
redhat pre 7.2 had login.def to force standard user to sign on first ForumKid Linux - General 1 08-14-2003 04:32 PM
Mount windows share - not standard question hopefully! Flibble Linux - General 4 10-17-2002 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:39 AM.

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