[opensuse] Using windows shares
Hi listmates, - this is killing me. I thought it was simple, hopefully it's just me who cannot seem to get my head right... On SuSE11 I've got like 15 users (KIWI-LTSP5). I've got one Win2003 server with shared directories, each owned by an inidivdual user. Now I'd like to have a desktop icon or whatever to allow my Linux users to access this share on the wintendo box. But only his share, not the shares of the other users. The shares on the win-machine are properly owned and have proper permissions and all. Usernames and passwords are the same on Linux and Windows. a) I can't seem to use an cifs/smbfs entry in /etc/fstab as such a line requires an "... -o username=vk,password=verysecret" This requirement kills this solution, or...? b) I'd like to just copy a konqueror "smb://server-ip/share" icon to the desktop of all Linux users, thus giving them a browse of the windows shares - and a prompt for username and password when the wish to access a certain share. This works perfectly fine when the fileserver is a samba server, will it work just the same with a 2003 box? c) I'm able to run a script at login time, could one employ "fusermount" or "fusesmb" or something smiliar? Any hints/howtos are as always, greatly appreciated. Thank you! -- ------------------------------ Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Verner Kjærsgaard wrote:
Hi listmates,
- this is killing me. I thought it was simple, hopefully it's just me who cannot seem to get my head right...
On SuSE11 I've got like 15 users (KIWI-LTSP5). I've got one Win2003 server with shared directories, each owned by an inidivdual user.
Now I'd like to have a desktop icon or whatever to allow my Linux users to access this share on the wintendo box. But only his share, not the shares of the other users.
The shares on the win-machine are properly owned and have proper permissions and all. Usernames and passwords are the same on Linux and Windows.
a) I can't seem to use an cifs/smbfs entry in /etc/fstab as such a line requires an "... -o username=vk,password=verysecret"
This requirement kills this solution, or...?
b) I'd like to just copy a konqueror "smb://server-ip/share" icon to the desktop of all Linux users, thus giving them a browse of the windows shares - and a prompt for username and password when the wish to access a certain share. This works perfectly fine when the fileserver is a samba server, will it work just the same with a 2003 box?
c) I'm able to run a script at login time, could one employ "fusermount" or "fusesmb" or something smiliar?
Any hints/howtos are as always, greatly appreciated. Thank you!
Well the login script will be the simple solution. No need for fuse, just use plain "mount -t cifs". Just make sure the script is only accessible by the user because you will have to pass the password (as in your option b). On this subject; does anyone know why there is no "use Linux user and passwd for samba logins" option? (or is there?) Manne -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Manne Merak wrote:
On this subject; does anyone know why there is no "use Linux user and passwd for samba logins" option? (or is there?)
The only one that comes to mind is smbpasswd. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
Manne Merak wrote:
On this subject; does anyone know why there is no "use Linux user and passwd for samba logins" option? (or is there?)
The only one that comes to mind is smbpasswd.
Yes - there's no nice GUI for setting all this up. I've tried GAdmin - http://85.214.17.244/gadmintools/index.php?option=com_content&task=view&id=16&Itemid=30 - for setting up samba but it seems as clunky as the command line. It is pretty much a try and fail type of scenereo. Once you have it, it should just work (TM) for you. I routinely share files between my laptop, suse desktops, work computers (2k/XP/Vista) and home desktops (2K) as well as various printers. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Kai Ponte wrote:
James Knott wrote:
Manne Merak wrote:
On this subject; does anyone know why there is no "use Linux user and passwd for samba logins" option? (or is there?)
The only one that comes to mind is smbpasswd.
Yes - there's no nice GUI for setting all this up.
Actually, there is. It's in "Personal Settings", under "Internet & Network, though I haven't done much there. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
Kai Ponte wrote:
James Knott wrote:
Manne Merak wrote:
On this subject; does anyone know why there is no "use Linux user and passwd for samba logins" option? (or is there?)
The only one that comes to mind is smbpasswd.
Yes - there's no nice GUI for setting all this up.
Actually, there is. It's in "Personal Settings", under "Internet & Network, though I haven't done much there.
Ahh, I remember that now. However, it doesn't correctly setup permissions. I had tried it several times and ended up needing to go to the smb.conf file and mucking about. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Kai Ponte wrote:
James Knott wrote:
Kai Ponte wrote:
James Knott wrote:
Manne Merak wrote:
On this subject; does anyone know why there is no "use Linux user and passwd for samba logins" option? (or is there?)
The only one that comes to mind is smbpasswd.
Yes - there's no nice GUI for setting all this up.
Actually, there is. It's in "Personal Settings", under "Internet & Network, though I haven't done much there.
Ahh, I remember that now. However, it doesn't correctly setup permissions. I had tried it several times and ended up needing to go to the smb.conf file and mucking about.
Well, this is not really what Im after. I want to tell smbmount to use my current logged-in linux username and password to login to shares. So aslong as I keep my local password synced with the windows network password all is well. The KDE control panel helps alot - I use it at the moment - It just needs a check box saying - "Use local login credentials". At fail it should come up with login dialog. Manne -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2008-12-01 at 10:32 +0200, Manne Merak wrote:
Well, this is not really what Im after. I want to tell smbmount to use my current logged-in linux username and password to login to shares. So aslong as I keep my local password synced with the windows network password all is well. The KDE control panel helps alot - I use it at the moment - It just needs a check box saying - "Use local login credentials". At fail it should come up with login dialog.
You can use a credentials file with the mount command. This file must contain the user's windows password for the share. If the windows password changes, this credentials file must be updated. That is not so nice. I have had my linux machine join an active directory. Next on my list is to see if I can get shares to mount (as you also want) if the user logs in to the linux machine using his Windows user name and password. I seem to recall reading something on this list a while back about trying to make this work. It involved pam_mount that controls mounting thing when a user logs in. Beyond that, I have nothing to tell. I long for a free day to sort this out. But those are few on the ground... So, hunt for into on pam_mount and CIFS. Maybe there is something there. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- "On two occasions I have been asked (by members of Parliament!), 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. - Charles Babbage 1791-1871) English computer pioneer, philosopher And remember: It is RSofT and there is always something under construction. It is like talking about a large city with all construction finished. Not impossible, but very unlikely. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
On Mon, 2008-12-01 at 10:32 +0200, Manne Merak wrote:
Well, this is not really what Im after. I want to tell smbmount to use my current logged-in linux username and password to login to shares. So aslong as I keep my local password synced with the windows network password all is well. The KDE control panel helps alot - I use it at the moment - It just needs a check box saying - "Use local login credentials". At fail it should come up with login dialog.
You can use a credentials file with the mount command. This file must contain the user's windows password for the share. If the windows password changes, this credentials file must be updated. That is not so nice.
I have had my linux machine join an active directory. Next on my list is to see if I can get shares to mount (as you also want) if the user logs in to the linux machine using his Windows user name and password. I seem to recall reading something on this list a while back about trying to make this work. It involved pam_mount that controls mounting thing when a user logs in. Beyond that, I have nothing to tell. I long for a free day to sort this out. But those are few on the ground...
So, hunt for into on pam_mount and CIFS. Maybe there is something there.
The credentials file (as you said) is a pain to update constantly and more suited for use in the fstab as described in the man pages. Active Dir is ok, if you have one - but its just strange to me that something like AD is "builtin", but not something simple like "Use local login for CIFS shares"? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Manne Merak wrote:
Kai Ponte wrote:
James Knott wrote:
Kai Ponte wrote:
James Knott wrote:
Manne Merak wrote:
On this subject; does anyone know why there is no "use Linux user and passwd for samba logins" option? (or is there?)
The only one that comes to mind is smbpasswd.
Yes - there's no nice GUI for setting all this up.
Actually, there is. It's in "Personal Settings", under "Internet & Network, though I haven't done much there.
Ahh, I remember that now. However, it doesn't correctly setup permissions. I had tried it several times and ended up needing to go to the smb.conf file and mucking about.
Well, this is not really what Im after. I want to tell smbmount to use my current logged-in linux username and password to login to shares. So aslong as I keep my local password synced with the windows network password all is well. The KDE control panel helps alot - I use it at the moment - It just needs a check box saying - "Use local login credentials". At fail it should come up with login dialog.
Manne
Two useful links below... http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/pam.html part of the excellent array of samba docs... http://www.devshed.com/c/a/Administration/Authentication-in-Samba/ and something just picked up from a quick google. - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkkzp1sACgkQasN0sSnLmgJBngCcCxSTM1QAwJ//u6DPRewDCywv gjEAn3EhKzxk60p1sejo7+swcaZWn3Dm =Vq/B -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
Manne Merak wrote:
Kai Ponte wrote:
James Knott wrote:
Kai Ponte wrote:
James Knott wrote:
Manne Merak wrote:
> On this subject; does anyone know why there is no "use Linux user and > passwd for samba logins" option? (or is there?) > The only one that comes to mind is smbpasswd.
Yes - there's no nice GUI for setting all this up.
Actually, there is. It's in "Personal Settings", under "Internet & Network, though I haven't done much there.
Ahh, I remember that now. However, it doesn't correctly setup permissions. I had tried it several times and ended up needing to go to the smb.conf file and mucking about.
Well, this is not really what Im after. I want to tell smbmount to use my current logged-in linux username and password to login to shares. So aslong as I keep my local password synced with the windows network password all is well. The KDE control panel helps alot - I use it at the moment - It just needs a check box saying - "Use local login credentials". At fail it should come up with login dialog.
Manne
Two useful links below...
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/pam.html
part of the excellent array of samba docs...
http://www.devshed.com/c/a/Administration/Authentication-in-Samba/
and something just picked up from a quick google.
I looked at PAM before and it is the proper solution. But why isnt it one of the obvious options in KDE or Gnome - or smbmount? Seems so obvious to me to try and login with my local user and passwd first, before prompting the user? Maybe its just me. To even further hijack this thread - I said this before on this list, I believe the KDE and Gnome management of smb, sshfs etc is flawed. These services must be handled like USB sticks and cameras are handled - mounted as needed and unmounted on request or after timeout. There are some solution out there - but again KDE and Gnome have their own idea of how to handle these and is not looking into including a cross-window-manager solution. Manne -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
... lots of cutaway, see thread... - thanks A LOT for all the info so far. - eh, the PAM solution is arguably the proper way of doing this. Any hints...or how-tos or just a plain quick and dirty "do this" :-) -- ------------------------------ Med venlig hilsen/Best regards Verner Kjærsgaard Open Source Academy +45 56964223 Novell Certified Linux Professional 10035701 ------------------------------ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
- but keep the discussion going, I learn a lot :-) Verner Kjærsgaard skrev:
... lots of cutaway, see thread...
- thanks A LOT for all the info so far. - eh, the PAM solution is arguably the proper way of doing this. Any hints...or how-tos or just a plain quick and dirty "do this"
:-)
This solves my problem - at least for now. - In KDE, use the James Knott suggestion: "Personal Settings", under "Internet & Network" in KDE. Then open up Konq, do a "smb://wintendo-share". Pull a symlink out to the desktop. This gives the users an easy access to their win-share. Ok, they can see the other shares that may be there, but they cannot get in there... And it's pw-less, if they fill in the KDE dialog as pointed out by JK. Just tried it, it's quite sufficient. Thanks a lot! -- ------------------------------ Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2008-12-01 at 16:14 +0100, Verner Kjærsgaard wrote:
This solves my problem - at least for now.
- In KDE, use the James Knott suggestion: "Personal Settings", under "Internet & Network" in KDE. Then open up Konq, do a "smb://wintendo-share". Pull a symlink out to the desktop.
This gives the users an easy access to their win-share. Ok, they can see the other shares that may be there, but they cannot get in there...
And it's pw-less, if they fill in the KDE dialog as pointed out by JK.
I'm using gnome, not KDE, but; in a similar way, using Nautilus, if I browse the network and then click the share I want to mount I'll be prompted for the login credentials. I'll also have the option to save the password permanently in the gnome-keyring. Then I can simply say "Add Bookmark" and viola! it appears on the left side of Nautilus. You can also drag-and-drop a share or link onto the desktop and because the key-ring has the login info there are no passwords. Regards, -- John Lange www.johnlange.ca -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Verner Kjærsgaard wrote:
- but keep the discussion going, I learn a lot :-)
Verner Kjærsgaard skrev:
... lots of cutaway, see thread...
- thanks A LOT for all the info so far. - eh, the PAM solution is arguably the proper way of doing this. Any hints...or how-tos or just a plain quick and dirty "do this"
:-)
This solves my problem - at least for now.
- In KDE, use the James Knott suggestion: "Personal Settings", under "Internet & Network" in KDE. Then open up Konq, do a "smb://wintendo-share". Pull a symlink out to the desktop.
I do this for my Wintendo shares. For those on a directory, you'll either need the IP addy or the domain user name. For example, this is one of my bookmarks: smb://vims\e515421@sfile2/TechServices/ smb://domain(or Active directory) \ username @ server / share
This gives the users an easy access to their win-share. Ok, they can see the other shares that may be there, but they cannot get in there...
And it's pw-less, if they fill in the KDE dialog as pointed out by JK.
Unfortunately, I always get prompted for a password, even though I have KWallet.
Just tried it, it's quite sufficient.
Thanks a lot!
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
G T Smith
-
James Knott
-
John Lange
-
Kai Ponte
-
Manne Merak
-
Roger Oberholtzer
-
Verner Kjærsgaard