how to create mount points (fstab)? Linux

joejld1

Member
Oct 25, 2003
83
0
0
Hi guys

I'm trying to use samba on a RedHat 9 Linux box that will connect to our local Domain with a win 2003 domain controller

samba, winbind, all works great

I just need to create mount points to some network folders.

To create the mount points i did:

mkdir -p /net/abc/1
mkdir -p /net/abc/2
mkdir -p /net/abc/3

Now, someone told me to modify the file system table, FSTAB in /etc/fstab, to reflect the newly created mount points

how would i go about doing that

I tried to add this is in fstab but did not work:

/net/abc/1 /mnt/1 smbfs defaults 0 0
/net/abc/2 /mnt/2 smbfs defaults 0 0
/net/abc/3 /mnt/3 smbfs defaults 0 0

any suggestions?

thanks a lot




 

statik213

Golden Member
Oct 31, 2004
1,654
0
0
Here;s an excerpt from my fstab. The permissions here are pretty liberal and once mounted any user can make changes on the share, use at your own risk or modify as neccessary:

//server/share /mnt/point smbfs credentials=/path_to/.credentials_file,fmask=777,dmask=777,rw 0 0

Note: I hide my domain user account info in a .credentials_file (i.e. ~/.domain_name_credentials) to avoid exposing my password in fstab. It's not the most secure way of doing things but It's something. The credentials file should look like:
username = <domain username>
password = <password>
domain = <domain>