Solved

Restrictive linux permissions with smbmount

Posted on 2000-05-17
4
261 Views
Last Modified: 2012-05-04
I am running RH6.1 with samba 2.05a, it is on a NT domain.  From the NT machines I can access the linux machine correctly.  However when when I mount a NT share on my linux machine, only the root user can write to the mount.  And the permission on everything is that root owns it.  I mounted it using this command:
smbmount //server/service /mnt/2001 -I xxx.xxx.xxx.xxx -U username
It then asks for the password, and I enter it.  I can use the share correctly, as long as I'm the root user.  I can't change permissions to it.  I've set up the correct permission on the mountpoint, and I can't chmod or chown.  Any ideas on how other users can access, and write to the share?
0
Comment
Question by:matt51
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
linuxwrangler earned 50 total points
ID: 2822085
I just wrestled with this. You need to (as root and understanding the risks of suid root) to make smbmnt, which actually handles the mount itself, to be suid root. Use "chmod +s /usr/bin/smbmnt"

Then you will be able to mount an nt share as a normal user. I need to check and see if that also allows you to change the access permissions on a mounted share.
0
 

Author Comment

by:matt51
ID: 2823410
I was able to mount the drive as a regular user.  Any ideas how I can change permissions after I mount it?
0
 

Author Comment

by:matt51
ID: 2855300
Comment accepted as answer
0
 

Author Comment

by:matt51
ID: 2855301
Sorry it took me so long to get back.  If you have a chance, could you email me what you did to allow you to change permissions after you mount it (matt@minime.msad71.net).

-Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question