Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-01-2003, 04:10 PM
|
#1
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Rep:
|
Mounting windows shares...using samba
Hello everyone.
Well, I will try and make this topic short and straight to the point.
Here is what I am attempting to do. I have a linux server that is being used as our backup machine. We have one central NT server that our users connect to, to retrieve data for the company. What I have done in the past is mount the windows shares directly to the backup server using the following command:
smbmount //server/C/ /samba/backup -o username=administrator
I would do this using 'root'. Once I initiated this command, I would then be asked for the administrator password for the 'server' and share 'C'. I would enter the password and the share was mounted. Simple enough.
Well, now im in a situation where I am trying to limit how much I use the root account (I am trying to get away from using root all the time.)
So what im trying to do now is mount the shares using the same account above, but using a normal account.
However, when I execute the same command above and after it prompts me for the password and I type it in, it kicks out the following error:
Password:
smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed: 1
I'm not sure what I can do to fix this. Can anyone lend a hand here?
I'm using RH 9.0.
I appreciate everyones help.
Tarballed
|
|
|
07-01-2003, 04:25 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Try it with the suid bit set:
chmod +s /path/to/smbmount
|
|
|
07-01-2003, 04:31 PM
|
#3
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
chmod +s for both smbmnt and smbumount
|
|
|
07-01-2003, 05:03 PM
|
#4
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
Alright, I did that and this is what I get now.
Code:
libsmb based programs must *NOT* be setuid root.
5098: Connection to server failed
SMB connection failed
OOf, any ideas on that one?
Tarballed
|
|
|
07-01-2003, 05:03 PM
|
#5
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
Looks like it is not even possible to do. :/
|
|
|
07-01-2003, 05:21 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Maybe you should add fstab entries and allow users to mount / unmount them. Then you could just run as a user:
mount /mnt/myshare
|
|
|
07-01-2003, 05:48 PM
|
#7
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
Good thought. I need a brush up on mounting things in fstab.
Know of any good links (besides the man page ) that I could turn to?
Thanks.
Tarballed
|
|
|
07-01-2003, 06:11 PM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Take a look at this post it may solve your original problem:
http://www.linuxquestions.org/questi...572#post232572
A basic fstab entry would be:
Code:
//winbox/share /mnt/myshare smbfs username=tarballed,password=mypass,owner,user,_netdev 0 0
|
|
|
All times are GMT -5. The time now is 03:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|