You are not logged in.

#1 2006-04-24 15:14:32

sydney
Member
Registered: 2005-11-25
Posts: 63

Samba: Need easy way to connect as USER like Windows

Hello,

i am searching for a easy way to connect to my samba server like in windows.

I dosent want allways mount sambashares as root with root:root writes.
I need samba mount as user i try set the suid bit on smbmount but doesent works right.

[sydney@midgard ~]$ smbmount //192.168.2.20/sydeney /media/smb/sydney/ -o username=sydney
libsmb based programs must *NOT* be setuid root.
4240: Connection to 192.168.2.20 failed
SMB connection failed

i know fstab is a way but i dont want use it, only if no other solution.
I hope some can tel me a solution or HowTo mount sambashares as user.

Thank you very very much

Offline

#2 2006-04-24 15:19:03

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Samba: Need easy way to connect as USER like Windows

What's wrong with /etc/fstab?

Just add "user" to the options column, and you can mount it as a normal user. The setuid option is far more ugly.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2006-04-24 15:27:53

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Samba: Need easy way to connect as USER like Windows

Instead of mounting you can access the samba shares from userspace. Konqueror does that, just enter smb:/ and wait.

Offline

#4 2006-04-24 16:46:31

sydney
Member
Registered: 2005-11-25
Posts: 63

Re: Samba: Need easy way to connect as USER like Windows

brain0 wrote:

Instead of mounting you can access the samba shares from userspace. Konqueror does that, just enter smb:/ and wait.

,

its not a good idea, i cant stream movies and cant save anyfile from web.



Why doesent work smbmount?

Offline

#5 2006-04-24 19:17:00

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: Samba: Need easy way to connect as USER like Windows

If you want smbmount to work you need to add the suid bit + add the correct line to fstab, I believe. That's at least what I had to do. You can also try smb4k, if you're a KDE user.

Offline

#6 2006-04-24 21:29:30

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Samba: Need easy way to connect as USER like Windows

nightfrost wrote:

If you want smbmount to work you need to add the suid bit + add the correct line to fstab, I believe. That's at least what I had to do. You can also try smb4k, if you're a KDE user.

No, as the warning quoted above says, you should never set suid on any samba related programs.
If you want to mount, you have to define every share in fstab, there is no other way to do it as user.

Offline

#7 2006-04-24 22:00:51

sydney
Member
Registered: 2005-11-25
Posts: 63

Re: Samba: Need easy way to connect as USER like Windows

Its sad.
I am looking forward for a accetable solution.

Thanks for help guys.

Offline

#8 2006-04-25 08:32:48

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: Samba: Need easy way to connect as USER like Windows

If you want to mount, you have to define every share in fstab, there is no other way to do it as user.

That's strange. Cause it's never worked for me, unless I first define it in fstab + set the suid bit. That is, I've always needed to do both :?

Offline

#9 2006-04-25 09:09:06

syd
Member
From: Auckland, NZ
Registered: 2006-01-22
Posts: 155

Re: Samba: Need easy way to connect as USER like Windows

Hey is there a program like smb4k that doesnt need 10,000 kde deps?
Also is there a fm like konquorer or nautilus that does network browsing?

I dont want to run a DE but somtimes network browsing can be a pain when the users are changing all the time.

Thanks,
Syd

Offline

#10 2006-04-25 10:12:44

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Samba: Need easy way to connect as USER like Windows

syd wrote:

Hey is there a program like smb4k that doesnt need 10,000 kde deps?
Also is there a fm like konquorer or nautilus that does network browsing?

I dont want to run a DE but somtimes network browsing can be a pain when the users are changing all the time.

Thanks,
Syd

you can try xsmbrowser, but don't expect too much of it

Offline

#11 2006-04-25 10:31:50

syd
Member
From: Auckland, NZ
Registered: 2006-01-22
Posts: 155

Re: Samba: Need easy way to connect as USER like Windows

Thanks but ive tryed xsmbrowser and yer it leaves much to be desired. Thanks anyway.
I think that ill just have to use my /etc/fstab untill somone develops  some sort of samba shares userspace that works with rox or somthing.

Syd

Offline

#12 2006-05-08 18:52:09

esox_ch
Member
Registered: 2006-04-30
Posts: 45

Re: Samba: Need easy way to connect as USER like Windows

Hello,

I tryed xsmbrowser but when I run it I get :

$ xsmbrowser
Application initialization failed: this isn't a Tk applicationunknown color name "Black"
File smb.conf not found.
Checking if .xsmbrowser-* exist ...
Done.
Reading Global config ...
Done reading.
Reading User config ...
Done reading.
Loading image files from pixmaps ...
Done. (ERROR: Cannot find images in pixmaps. See Setup.)
Error in startup script: can't invoke "wm" command:  application has been destroyed
    while executing
"wm title . "xSMBrowser 3.4.0""
    (file "/usr/bin/xsmbrowser" line 9041)

How can I solve the problem?

Offline

Board footer

Powered by FluxBB