Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok, i've been trying these two programs LineNeighborhood and xSMbrowser. Now, samba is running just fine, as root I can mount shares and everything, but when I use these two smb browsers or if I try to mount share as a user I get errors. To make the story short, this is the error message that the two gui smb browsers give me:
smbmnt must be installed suid root for direct user mounts (1000,1000)
smbmnt failed: 1
Now I've try looking info on what the %&^% is the suid stuff, but I don't really understand any of it (man seuid). Heck I'm not really shure if that is the right way to go.
Now what I wanna be able to do, is use LineNeighborhood or xSMBrowser and be able to mount shares into my user directory without having to become root. Is it possible? I guess yes, but I don't know how to do it.
Anyways, if anyone can please help me it will be greatly appreciated.
And just an FYI, SUID means that whenever the script is run, it runs as the script's owner, rather than the standard behavior of running as whoever is trying to run the script. Be careful how you use SUID as, obviously, it can open big security holes on files owned by root.
you chmod'ed 'share' you haven't chmod'ed /path/to/smbmnt
I think I may have explain this the wrong way. What I mean is that I created dir called "share" in my /home/figa folder. So I did a chmod u+s /home/figa/share. I didn't actally tried to chmo'ed the dir being shared by the other computer. Now, just to be shure, is this what you meant with <chmod u+s /path/to/whatever>?
Also, just out of curiosity, I tried "chmod +s /usr/bin/smbmount" but I soon found out that smbmount and smbumount will not run with this.
libsmb based programs must *NOT* be setuid root.
8926: Connection to compy386 failed
SMB connection failed
my solution so far has been to use the "mount as root" option in LinNeighborhood but I find this annoying (especially since I dont want to use LinNeighborhood).
I read in another thread that if you chmod 700 smbmount then it will work fine. The problem with that is then I get a permissions error as my user no longer has exec permission on smbmount.
Any help in this area would be great! I am hoping it is just that I am doing it wrong...not a SuSE specific issue. Maybe upgrading to samba 3 would help....
Originally posted by rshaw chmod u+s /path/to/whatever
I know I have come in on the end of this thread but I feel I must chastise the "moderator". This site i believe is where you come for help. The above quoted statement would mean absolutely nothing to a newbie as can be seen from your follow up comment below.
Quote:
you chmod'ed 'share' you haven't chmod'ed /path/to/smbmnt
Maybe if you had used the word "smbmnt" instead of "whatever" in the first place it may have been more useful.
Originally posted by figadiablo try
chmod u+s smbmnt
instead of smbmount
/* Fixed the typo */
not working as either:
Code:
[root@raylap root]# chmod u+s smbmnt
chmod: failed to get attributes of `smbmnt': No such file or directory
[root@raylap root]# chmod u+s smbmount
chmod: failed to get attributes of `smbmount': No such file or directory
i am getting the same error as the OP when i try to mount a windows share using smbfs installed on RH9 laptop.
Code:
[ray@raylap ray]$ smbmount //192.168.2.100/movies /home/ray/tmp
Unknown parameter encountered: "ssl CA certFile"
Ignoring unknown parameter "ssl CA certFile"
7475: session request to 192.168.2.100 failed (Called name not present)
7475: session request to 192 failed (Called name not present)
so something is wrong. in Debian i just apt-get install smbclient and smbfs and away i went. RH9 is giving me these fits.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.