LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2005, 03:41 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
fstab help please


i have finnaly gotten myself comfortable with smbmount with regards to mounting windows shares, now i am ready to learn how to manipulate the fstab and the shadowpassword file directory thing.

i still feel extreemly new to linux even though i have come a long way in the past 18 months or so.

if someone could give me very detailed explanasion on were and what and how to edit the files that need editing so i can get the windows shares (not on the same system, but a remote system. win2k server to be exact) in a way that is as secure as possible as a few of the shares are administrative shares (C$ type) that i need access to for running the business here.

i am slowly converting from a windows enviroment to a linux one. only 1 thing left so i can be 100% linux here at my office/school and that is finding a replacement for PageMaker 7 then getting comfortable with it.

at that point i will be able to go 100% linux at my school... cheers getting much closer and this is just one more step to making that a reality.
 
Old 02-28-2005, 06:11 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
I'm not sure what you're after exactly, but to answer the request in the subject -- man fstab.
 
Old 02-28-2005, 08:04 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
thanks, but no thanks, that does me little good as i dont understand 90% of the man pages out there. it talks to people who already know how to do most things in linux, i am not there yet.
 
Old 02-28-2005, 08:32 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
No, they talk to the average person and tell you how to do things. When you need help with something, the man pages are really the first place you should turn. In your case, it looks like you should be reading the manpage for smbmount and the one for fstab.

I don't think that anyone can explain it to you in any simpler terms than the man pages will, at least not without just doing the work for you... It's really not that difficult. If you're comfortable with mounting things, both those man pages should really just build on what you already know.
 
Old 02-28-2005, 09:29 PM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok thanks for the non-help.

ill look other places then.
 
Old 02-28-2005, 10:41 PM   #6
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
I'd not give up on this thread yet. Maybe someone will come along and write your config files for you.

It's probably my fault. I assumed that someone with over a thousand posts under their belt and 2 steps away from going to 100% linux would be able to read documentation.
 
Old 03-01-2005, 01:16 AM   #7
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
i can read the doc, but if you dont understand what it is telling you then it is not worth the headache. i have looked at it several times, but its like looking at something foreign.

it would be like me asking you to perform Choong-Moo or Moon-Moo and expect you to do it as flawlessly as i can without teaching you everything you need to know how to perform the more challanging moves.

if you do not have the basics to start from then looking at the advance details does no good.

dont want someone to make a config for me, but i do need a HOWTO so i can creat what i need. i need some basic steps to learn how to deal with this part of the linux command structor or interaction.
 
Old 03-01-2005, 06:48 AM   #8
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Quote:
Originally posted by Lleb_KCir
i need some basic steps to learn how to deal with this part of the linux command structor or interaction.
I guess your first post where you said you were comfortable with smbmount was what threw me.

At any rate -- I turned this up by hitting google with "linux smbmount fstab". It looks like it takes all the work out of it for you (and it's even on this site)

http://wiki.linuxquestions.org/wiki/Samba
 
Old 03-01-2005, 11:03 AM   #9
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
i can get access to windows shares by typing the following commands on that wiki and am now comfortable with doing that to just about any type of windows share...

that wiki is the basics of what i need, but does that file not leave the user/password in plane text? what about the shadowed password file, were is that located?

that had the unsecure file, now to find the more secure (encrypted i guess is the proper term) way of making that p/w file.
 
Old 03-01-2005, 12:28 PM   #10
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
If you place the credentials file in your home directory and set the file permissions as shown, someone is going to already have your password before they can read the file
If you have root access to the server, try placing the credentials file in root's home directory. If someone get's root access to your server and is able to read the contents of the file, it's the least of your problems.
There's no way you're going to be able to encrypt the credentials file and have it be read when the shares are mounted from fstab. Hiding it in a home directory with the proper permissions is about the best you are going to do. That's the way I've always done it and I haven't had any problems yet after using Linux/Samba for over 3 years.
 
Old 03-01-2005, 12:42 PM   #11
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok nice, so for example i can creat that file in / and set the permissions to 600 (that will make it only work for root correct? not what i want).

let me explain a little more about this workstation.

i have 2 at the school. 1 is a POS (point of sale) box that is used to RCP (think that is the protocal that TS uses) to connect to a win2k server for access to QuickBooks.

the 2nd one, the one in question is my workstation that i will often times alow helpers to use for what ever they need to do like access qucikbooks or internet or e-mail or what ever. most of them do not know enough to break anything intentionally, but you never can tell.

as i use the user account on both system and only access root when i need to do a root level job (if i understand that is the proper way to do things) i would like ot keep the p/w file away from courious eyes.
 
Old 03-01-2005, 01:12 PM   #12
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
The user root's home directory is /root, not / . Place the credentials file in /root, make it hidden(start the file name with a period such as .credentials, and make the permissions 600. If anyone ever get's a look at that file, they have your root password.

Here's how I do it:

http://www.justlinux.com/nhf/Filesys...rmanently.html

I don't think that really provides any more info than the wiki link though.
 
Old 03-01-2005, 02:05 PM   #13
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok now i see how things work. so a "." in front of a file hides it, but it can be seen with a ls -la correct? can user add a file to /root? or is that something i need to be root to accomplish?
 
Old 03-01-2005, 02:15 PM   #14
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
ls -a will show you the hidden files. Adding the -l option presents it in long format.

From my experience with /root, only the root user can see or access anything in that directory. Log in as yourself and try to access /root. You should be denied.
 
Old 03-01-2005, 02:20 PM   #15
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok if i make the .smbpasswd file as root will it still be readable if the user does the smbmount?

still trying to understand the entire linux permissions thing.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
What is fstab? sceadu Linux - Newbie 2 11-02-2004 07:25 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
Help with /etc/fstab wawosz Linux - General 3 04-24-2003 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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