LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 06:17 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
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, 07: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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