Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Restrictive linux permissions with smbmount

Posted on 2000-05-17
4
Medium Priority
?
264 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 150 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

718 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