smbfs in fstab

2005-04-26 Thread kevintaber
currently I mount my XP share via: mount_smbfs -N //a7v133/raid /storage1

How can I get put this in my /etc/fstab so that it doesn't prompt me
for a password upon bootup.  This winshare is accessible without a
password and by anyone.  I have read through seveal forums and read
man pages gallore, but I still remain unsuccessful.

5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: smbfs in fstab

2005-04-26 Thread Ash
[EMAIL PROTECTED] wrote:
currently I mount my XP share via: mount_smbfs -N //a7v133/raid /storage1
How can I get put this in my /etc/fstab so that it doesn't prompt me
for a password upon bootup.  This winshare is accessible without a
password and by anyone.  I have read through seveal forums and read
man pages gallore, but I still remain unsuccessful.
5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0
From the man page for mount_smbfs(8):
[quote]
~/.nsmbrc  Keeps static parameters for connections and other information.
   See /usr/share/examples/smbfs/dot.nsmbrc for details.
   
...
 It is possible to use fstab(5) for smbfs mounts:
  //[EMAIL PROTECTED]/public/smb/public smbfs  rw,noauto 0   0
[/quote]
From /usr/share/examples/smbfs/dot.nsmbrc:
[quote]
# smbfs lookups configuration files in next order:
#   1. ~/.nsmbrc
#   2. /etc/nsmb.conf - if this file found it will
#  override values with same keys from user files.
[/quote]
You will have to store your password in cleartext, but you seem to 
already be doing this in home directory since you are using the -N flag.

-Ash
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: smbfs in fstab

2005-04-26 Thread Micheal Patterson
.


- Original Message - 
From: Ash [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, April 26, 2005 10:32 AM
Subject: Re: smbfs in fstab


 [EMAIL PROTECTED] wrote:
  currently I mount my XP share via: mount_smbfs -N //a7v133/raid
/storage1
 
  How can I get put this in my /etc/fstab so that it doesn't prompt me
  for a password upon bootup.  This winshare is accessible without a
  password and by anyone.  I have read through seveal forums and read
  man pages gallore, but I still remain unsuccessful.
 
  5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0

  From the man page for mount_smbfs(8):

 [quote]

 ~/.nsmbrc  Keeps static parameters for connections and other information.
 See /usr/share/examples/smbfs/dot.nsmbrc for details.
 
 ...

   It is possible to use fstab(5) for smbfs mounts:

//[EMAIL PROTECTED]/public/smb/public smbfs  rw,noauto 00

 [/quote]


  From /usr/share/examples/smbfs/dot.nsmbrc:

 [quote]

 # smbfs lookups configuration files in next order:
 #   1. ~/.nsmbrc
 #   2. /etc/nsmb.conf - if this file found it will
 #  override values with same keys from user files.

 [/quote]


 You will have to store your password in cleartext, but you seem to
 already be doing this in home directory since you are using the -N flag.

 -Ash
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]



If you want this to mount from the fstab at system boot, remove the noauto
flag and place an -N in the string:

#//[EMAIL PROTECTED]/share_name  /mount_pointsmbfs   rw,-N


That will read the password information from the users .nsmbrc file as Ash
stated, or, if you want it system wide, use the /etc/nsmb.conf file instead.

--

Micheal Patterson
Senior Communications Systems Engineer
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]