Solved

Restrictive linux permissions with smbmount

Posted on 2000-05-17
4
260 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!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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