Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I mounted a Windows 2000 server shared directory called Public onto a Linux computer running Red Hat Enterprise Linux ES kernal 2.6.9-42. I can copy/move files into the directory from the Linux box only when I am running as root. When I am an ordinary user on the Linux box, I'm denied permission. The Windows Public directory is shared out with full privleges to the Everyone group both locally and on the domain. I've tried creating an account on the Windows box with the same login/password as the ordinary user on the Linux box with full rights to the Public directory but it still fails. From the Linux box, I tried as root to chown and chmod on the mounted Public directory to the ordinary user but it wouldn't change anything. I suppose because it was a mounted directory. I still shows:
drwxr-xr-x 1 root root 4096 Jan 6 16:19 Public
If I create a directory on the Linux box and make the owner the ordinary user, as soon as it is made the mount directory, the rights become what you see above again.
I've heard of linking an Unix/Linux account with a Windows account using the command smbadduser but it wasn't on my Linux distribution.
What can I do to give the ordinary user on the Linux box permission to copy/move files to the mounted Public directory?
I have it working now......The trick was to mount it using CIFS and using the username/password of the ordinary user who became the owner of the mount point with the necessary rights........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.