<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2">
</HEAD>
<BODY>
True enough, I didn't think to edit that part of the command when I composed the email. Good catch.<BR>
<BR>
Marty<BR>
<BR>
On Fri, 2005-06-24 at 11:05 -0700, Brian T. Brunner wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Does this not assume that the uid/gid is 500/500 for all users?</FONT>

<FONT COLOR="#000000">$UID and $GID might be better choices...</FONT>

<FONT COLOR="#000000">Brian Brunner</FONT>
<FONT COLOR="#000000"><A HREF="mailto:brian.t.brunner@gai-tronics.com">brian.t.brunner@gai-tronics.com</A></FONT>
<FONT COLOR="#000000">(610)796-5838</FONT>

<FONT COLOR="#000000">>>> Marty Merrick <<A HREF="mailto:MMerrick@idleaire.com">MMerrick@idleaire.com</A>> 06/24/05 01:57PM >>></FONT>
<FONT COLOR="#000000">Here's the command I use on RH:</FONT>

<FONT COLOR="#000000">smbmount //WindowsServer/share_to_mount /home/users_home/mount_point_dir</FONT>
<FONT COLOR="#000000">-o username=username,uid=500,gid=500</FONT>

<FONT COLOR="#000000">The benefit of doing it this way is you can allow each (non-root) user</FONT>
<FONT COLOR="#000000">control over which shares they mount. Have them create a mount point</FONT>
<FONT COLOR="#000000">directory in their home directory. </FONT>

<FONT COLOR="#000000">You will need to set the sticky bit on  /usr/bin/smbmnt (as root) as</FONT>
<FONT COLOR="#000000">well: chmod +s /usr/bin/smbmnt</FONT>

<FONT COLOR="#000000">After that the (non-root) user can run the smbmount command as above.</FONT>

<FONT COLOR="#000000">Cheers,</FONT>
<FONT COLOR="#000000">Marty</FONT>


<FONT COLOR="#000000">On Fri, 2005-06-24 at 10:10 -0700, Clinton Fernandes wrote:</FONT>

<FONT COLOR="#000000">> In linux:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> mount -t smbfs -o username=<username> <also any other options here> //<windows</FONT>
<FONT COLOR="#000000">> machine name>/<path to mount> /mnt/<mount point></FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> the -o is for options. Usually for windows you'll need to supply a windows</FONT>
<FONT COLOR="#000000">> username to gain access to the shared folder. (It'll ask for a password too).</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> `man mount` should provide other available options.</FONT>
<FONT COLOR="#000000">> </FONT>

<FONT COLOR="#000000">*******************************************************************</FONT>
<FONT COLOR="#000000">This email and any files transmitted with it are confidential and</FONT>
<FONT COLOR="#000000">intended solely for the use of the individual or entity to whom they</FONT>
<FONT COLOR="#000000">are addressed. If you have received this email in error please notify</FONT>
<FONT COLOR="#000000">the system manager.</FONT>

<FONT COLOR="#000000">This footnote also confirms that this email message has been swept</FONT>
<FONT COLOR="#000000">for the presence of computer viruses.</FONT>

<FONT COLOR="#000000"><A HREF="http://www.hubbell.com">www.hubbell.com</A> - Hubbell Incorporated</FONT>

<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">rhn-users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:rhn-users@redhat.com">rhn-users@redhat.com</A></FONT>
<FONT COLOR="#000000"><A HREF="https://www.redhat.com/mailman/listinfo/rhn-users">https://www.redhat.com/mailman/listinfo/rhn-users</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>