LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2008, 07:17 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Permanent Mounting ??


I have a script for my SVN Backup on Ubuntu Fiesty:
Code:
#!/bin/bash
mount -t smbfs //IN-DOLLY/ /mnt/window2 -o username=tuxbuddy/<domainname>%<password>

sudo svnadmin dump  --incremental /home/ttvs/repository | gzip -c > /mnt/window2$
sudo svnadmin dump  --incremental /home/ttvs/repository | gzip -c > /mnt/window2
The Username and password is my personal credential which I change everytime in the script whenever my password changes.

Now I want to make it permanent.How Should i make that permanent entry in /etc/fstab (with credentials)..Is there any option for that?

Pls help
 
Old 08-22-2008, 08:01 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You don't want credentials in 'fstab' - that's world-readable. Instead you can do something like:

/dev/hdb2 /mnt/winduhs smbfs defaults,user,credentials=/home/me/some_dir/mycreds 0 0

Then you can make 'mycreds' readable only by you ... well, and also 'root' and anyone who mounts the HD on another system or ... well, OK, so the file is really not that secret after all, but at least other normal system users can't read it without doing something evil.

Another alternative is to create a directory /etc/creds and make it 'sticky' (like the /tmp directory) so people can put their own credential files in there rather than in their home dirs.
 
  


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
lsmod [permanent] overpencil Linux - Software 2 02-05-2008 10:14 PM
Permanent aliases Acetylcholine Slackware 6 01-06-2005 04:29 PM
Permanent IP address linksocc Linux - Networking 2 10-10-2003 11:56 PM
Making Changes Permanent T-u-N-i-X Linux - General 1 09-01-2003 06:47 AM
getting permanent color for ls? JapKraut Linux - Newbie 7 09-13-2001 10:43 AM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration