Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Samba: Need easy way to connect as USER like Windows

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
sydney
n00b
n00b
Posts: 44
Joined: Mon Sep 26, 2005 10:57 pm

Samba: Need easy way to connect as USER like Windows

  • Quote

Post by sydney » Mon Apr 24, 2006 3:15 pm

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.

Code: Select all

[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
Top
ajaygautam
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Thu Jan 23, 2003 6:47 pm
Location: London Below

  • Quote

Post by ajaygautam » Mon Apr 24, 2006 7:58 pm

I can use ambmount as a non-root user. No suid needed. What problems did you face when you try to run smbmount as a user?

Try this:

Code: Select all

cd $HOME
mkdir sydney
smbmount //192.168.2.20/sydeney sydney -o username=sydney
cd sydney
ls -l
cd ..
smbumount sydney
Post any issues that you find. And remove that SUID bit from smbmount.

Ajay
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy