Solved

Restrictive linux permissions with smbmount

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now