Solved

Restrictive linux permissions with smbmount

Posted on 2000-05-17
4
259 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

786 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