»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2004, 09:52 PM   #1 (permalink)
Registered User
 
S.D.Willie's Avatar
 
Join Date: Oct 2001
Location: Ranger Country
Posts: 2,308
S.D.Willie is on a distinguished road
Kids security issues with fstab and nfs shares

hey all,

a while back i found a great page that showed you how to create a file with your user name and password(in it) which is stored in your hidden home directory. i then edited my fstab accordingly to mount some nfs shares at boot and didnt have to put the actual password and username in the fstab itself, i just had it point to that file for the user info.

well of course i cant find that after looking around everywhere so i was curious if anyone knew what i was talking about and how to do it since i dont remember.

SD


Last edited by S.D.Willie; 01-07-2004 at 09:55 PM.
S.D.Willie is offline   Reply With Quote
Old 01-07-2004, 10:11 PM   #2 (permalink)
Registered User
 
S.D.Willie's Avatar
 
Join Date: Oct 2001
Location: Ranger Country
Posts: 2,308
S.D.Willie is on a distinguished road
nevermind, i found it. incase anyone was curious its:
__________________________________
Putting your username and password in /etc/fstab is a big security risk. I recommend using the credentials method as below. (btw this will get rid of that annoying kernel error about noexec)

add the following line to your /etc/fstab, making the proper substitutions.

//servername/sharename /mountdirectory smbfs credentials=/home/myhomedirectory/.smbpasswd 0 0

to create the .smbpasswd file just type the following while in your home directory

cd
echo username=mywindowsusername > .smbpasswd
echo password=mywindowspassword >> .smbpasswd
chmod 600 .smbpasswd

now you will have a nice clean smb mount without annoying error messages, not to mention a secure one.

Hope you guys like this.
_________________________________

not my creation, but a good find nevertheless.

SD
S.D.Willie is offline   Reply With Quote
Old 01-08-2004, 03:10 AM   #3 (permalink)
Registered User
 
lynchmob's Avatar
 
Join Date: Oct 2001
Location: Mid-Atlantic
Posts: 1,361
lynchmob is on a distinguished road
Thanks. Good stuff, SD.Willie.
lynch
__________________
Seldom right,but never in doubt...
lynchmob is offline   Reply With Quote
Old 01-08-2004, 08:54 PM   #4 (permalink)
Registered User
 
pbharris's Avatar
 
Join Date: Oct 2001
Location: Chicago, IL
Posts: 2,403
pbharris is on a distinguished road
Send a message via ICQ to pbharris Send a message via AIM to pbharris Send a message via Yahoo to pbharris
thanks SD!
__________________
I don't use Linux because I hate Windows (which I do) I use Linux because I like it.
play mtrek! telnet://mtrek.com:23
Odds are very good there are several spelling mistakes in this post.
pbharris is offline   Reply With Quote
Old 01-14-2004, 09:49 PM   #5 (permalink)
Registered User
 
flashingcurser's Avatar
 
Join Date: Jan 2002
Posts: 332
flashingcurser is on a distinguished road
Very cool stuff. I have been toying around with lisa--it lets you browse the network out of konq, but it doesnt have a nice clean mount point to download stuff to. I have always hated the idea of having passwords in my fstab --- thank you very much!


flashingcurser is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 12:48 PM.