LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-18-2008, 10:02 AM   #1
karanjeet
LQ Newbie
 
Registered: Dec 2006
Posts: 12

Rep: Reputation: 0
'bashrc user login


Hi

I have created a specific dir (eg, inst) in users profile, I want that when user login into their respective ids , inst folder get mounted automatically thru NFS server....

I read somewhere to add :
mount -t nfs nfsserver_ip:/path /home/username/inst

in .bashrc file of that user profile..

I m tried it but nothing happened and when I login thru user its says error:
mount can only be done by root.


Pleased Advice

Thnx
 
Old 07-18-2008, 10:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,134

Rep: Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111Reputation: 7111
Quote:
Originally Posted by karanjeet View Post
Hi

I have created a specific dir (eg, inst) in users profile, I want that when user login into their respective ids , inst folder get mounted automatically thru NFS server....

I read somewhere to add :
mount -t nfs nfsserver_ip:/path /home/username/inst

in .bashrc file of that user profile..

I m tried it but nothing happened and when I login thru user its says error:
mount can only be done by root.
Usually only root users can mount/dismount drives. Look at the man page for the mount command ("man mount"). It talks about the options you can put in /etc/fstab to allow non root users to mount things.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 10:59 PM
ssh remote login - how to source .bashrc automatically newsgroupie2003 Linux - General 2 08-16-2005 04:49 AM
.bashrc doesn't execute on ssh login rose_bud4201 Linux - Software 2 06-01-2005 08:28 AM
.login, .bashrc or .cshrc ??? tuananhbirm Linux - General 1 01-20-2005 09:44 AM
SLSE9 login issue with bash.bashrc iverger SUSE / openSUSE 0 11-18-2004 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:20 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