Re: Questions re samba/cifs stuff in general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 30 January 2008, Rick Stevens wrote:
>On Wed, 2008-01-30 at 20:03 -0500, Gene Heskett wrote:
>> Greetings all;
>>
>> I guess I'm getting lazy in my dotage, but do we have in our current bag
>> of tricks, a gui program that can display the available cifs/samba shares
>> on the local network, and then allow the local mounting of such a visible
>> share by nothing more elegant than having the user enter both the username
>> to log in as, and the password, hopefully remembering those items till the
>> rapture or some such silly amount of time?
>
>If you use Gnome, can't you see them via "Places->Network->Windows
>Network"?  If you double click on one of the servers there, it should
>ask you for username, password and domain.
>
Unforch, I use kde.  I was thinking I'd seen something along these lines, but 
either my eyesight is going to hell, or some upgrade removed it, which I have 
NDI.

>> I ask because I just spent over an hour trying to get the syntax right for
>> a mount.cifs invocation to do just that.  I hate manpages without any
>> actual, known to work examples.
>>
>> Also, where did smbmount go?  Its loss means that even if I could have
>> recovered my even more complex script from the old FC6/etc/init.d, it
>> would have failed.  I can reinvent that wheel eventually but its been 7 or
>> 8 years since I had to fool with this & things get rusty, call it CRS,
>> whatever.
>
>smbmount was killed off in favor of mount.cifs.  However, it's easier to
>use a standard mount command, but specify "-t cifs":

I did try that, cuz my old script used it that way, but couldn't seem to get 
that chaw of red man positioned right & at my age, virgins are in very short 
supply. :-)

>
>	mount -t cifs //server/share /mountpoint \
>	-o user=username,domain=workgroup,password=password

I wound up using this, but since all are the same domain, I didn't supply 
that.  Could that be a security risk?  That machine is on the same switch as 
this one, and all are this side an x86 box running dd-wrt with its firewall 
enabled.  I think the only real security risk is probably me & PEBKAC. :)

>or you could put all the options in one option:
>
>	-o user=workgroup/username%password
>
>Even better, use a credentials file with the username and password in
>it so it's not visible in a command history:

Getting more paranoid as the years go by, that's also sounding like a better 
idea.  I'll recheck the man page, thanks Rick.

>	-o domain=workgroupname,credentials=/path/to/cred/file
>
>----------------------------------------------------------------------
>- Rick Stevens, Principal Engineer             rstevens@xxxxxxxxxxxx -
>- CDN Systems, Internap, Inc.                http://www.internap.com -
>-                                                                    -
>- If at first you don't succeed, quit. No sense being a damned fool! -
>----------------------------------------------------------------------
Nahh, that would spoil all the fun! :)


-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
	"You boys lookin' for trouble?"
	"Sure.  Whaddya got?"
		-- Marlon Brando, "The Wild Ones"


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux