Connecting Linux desktop users to a Windows file server?

Dallas Helquist plug-discuss@lists.plug.phoenix.az.us
16 May 2002 22:35:37 -0600


I've got a slightly different setup that works.  First off, I am
connecting to a box running samba - not a windows machine - though that
shouldn't matter(provided your windows box is indeed allowing shares). 
The box "obj" has a user named "dallas" as well.  I've tried it sending
the username= and it works as well.

My fstab looks like this: 
//obj/dallas    /home/dallas/obj-home   smbfs   noauto,owner,user      
0 0

I have a entry in /etc/hosts for "obj".

The box I mount the drive on is a default rh 7.2, except I chmod +s
smbmount.
-rwxr-xr-x    1 root     root       418876 Aug 13  2001
/usr/bin/smbmount


Mount works fine: 

[dallas@dhcp159 dallas]$ mount /home/dallas/obj-home 
Password: 
[dallas@dhcp159 dallas]$ 


[dallas@dhcp159 dallas]$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1               495876     91473    378802  20% /
/dev/hda2               603220    148372    424208  26% /home
none                     95040         0     95040   0% /dev/shm
/dev/hda6              1682664   1356436    240752  85% /usr
/dev/hda5               117105     39238     71821  36% /var
/dev/cdrom              613390    613390         0 100% /mnt/cdrom
//obj/dallas           5044096   3481216   1562880  70%
/home/dallas/obj-home

The shared directory mounted rw, and user "dallas" can modify/delete/add
any file.

-dallas



On Thu, 2002-05-16 at 23:13, Steve wrote:
> with just a slightly insane chuckle,
> 
> I have the exact same problem with my mount command ( and with other 
> things such as this).  I have not been able to get it to work either.  I 
> thought at first it was the owner:group (root:root) or a permission 
> problem for my mountpoint, but that was not the case.  I am stumped for 
> now..time to reread the apropriate man pages again <mount (8) smbmount 
> (8) Others?>
> 
> Steve
> 
> 
> Lynn David Newton wrote:
> 
> >I'm dealing with this problem myself right now ... I'm
> >the only one who uses the systems, so it's no big deal
> >for me to su to root to copy files to the shared
> >filesystem from Linux, but I know I shouldn't have to
> >do it.
> >
> >So I jumped right on this model to see if I could make
> >it work for me. Nothing *ever* works right for me the
> >first time.
> >
> >  jp> I have lines like this in my /etc/fstab ...
> >
> >  jp> //ms_file_server/share_name /mnt/share_name smbfs noauto,user,username=ntuser,workgroup=NT_DOMAIN_NAME 0 0
> >
> >I didn't have to use the workgroup name in the
> >commandline version, so I didn't add that option. In
> >fact the entry in my fstab now looks like this:
> >
> >//LynnsXTBox/work /mnt/work smbfs noauto,user,username=lynn 0 0
> >
> >The first time I tried to mount as non-root I got this:
> >
> >$ mount /mnt/work
> >Password: 
> >smbmnt must be installed suid root for direct user mounts (30274,30274)
> >smbmnt failed: 1
> >
> >Oh really? Hmmm. So ...
> >
> >$ su
> ># chmod u+s /usr/bin/smbmnt
> >Ctrl-D
> >$ mount /mnt/work
> >Password: 
> >cannot mount on /mnt/work: Operation not permitted
> >smbmnt failed: 1
> >
> >Now what?
> >
> >  
> >
> 
> 
> 
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> 
> PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss