If this is something you want to put into /etc/fstab to be a consistant mount use the following in your /etc/fstab:
//w2kbox/share /mnt/linuxdirectory smbfs credentials=/path/to/creds,uid=userid,gid=groupid,fmask=775,dmask=775 0 0 This will do a few things: 1st, create a credentials file in the users home directory that is mounting the directory. I use the filename smbcreds. In this put the following, one per line and chmod 700 the file: username=w2kusername password=w2kpassword This is the way you can insure your credentials are NOT found by all users. Next, the uid is the owner you want the share mounted with, the gid is the group you want the share mounted with, fmask is the file mask permissions you want (the example is 775(-rwxrwxr-x) ), and the dmask is the directory mask of the directories (the example is 775(drwxrwxr-x) ). Your system can mount your drives at boot or you can mount/umount a samba share using the standard "mount /sharename" "umount /sharename" commands. Hope this helps. -----Original Message----- From: Robert Baker [mailto:[EMAIL PROTECTED]] Sent: Friday, October 11, 2002 11:52 AM To: '[EMAIL PROTECTED]' Subject: RE: [TriLUG] Newbie Question about smbclient Mark, Thanks that worked great. Just had to re-login as root to do it. Is there a way to make this connection persistent? So every time I login it will be there? Do I have to edit the smb.conf or samba.conf file to accomplish this? I don't have an smb.conf file in the /etc dir. Do I have to create one? Thanks >>> Rob Baker <<< Webcentric Applications Developer -----Original Message----- From: Mark Fowle [mailto:[EMAIL PROTECTED]] Sent: Friday, October 11, 2002 11:33 AM To: trilug Subject: Re: [TriLUG] Newbie Question about smbclient If you are connecting to the Windows share from the linux box, its just a regular mount - mount -t smbfs -o username=w2kusername,password=w2kpassword //w2kbox/share /mnt/linuxdirectory You will have to user a valid username and password for the W2K box -- Mark On Fri, 2002-10-11 at 11:27, Robert Baker wrote: > I just installed RH8 on a testing client machine and would like to > connect to a windows share on one of our W2K boxes. > > Currently I can do this by using this command: > "smbclient //servername/sharename <file://\\servername/sharename> " > > Is there a way to "map" this to a directory? > I'd like to assign this a path maybe? So I could change dir's to get > to the files. > > Thanks > > <> Rob Baker <> > Webcentric Applications Developer _______________________________________________ TriLUG mailing list http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ: http://www.trilug.org/~lovelace/faq/TriLUG-faq.html _______________________________________________ TriLUG mailing list http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ: http://www.trilug.org/~lovelace/faq/TriLUG-faq.html _______________________________________________ TriLUG mailing list http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ: http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
