Windows files copied to my linux partition are locked when logged in as a normal user

User Name

Remember Me?

Password

SlackwareThis Forum is for the discussion of Slackware Linux.

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.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Windows files copied to my linux partition are locked when logged in as a normal user

I have a dual boot system with windows xp on my master hard drive and slackware 10.0 kde 3.2.3 on my slave hard drive. I edited my fstab so that I could access my windows partition when logged in as a normal user. I can now access my windows drive when logged in as a normal user.

However, I cannot use any files that I copy from my windows drive to my linux drive when logged in as a normal user. The icons have a padlock symbol over them. When I log in as a root I have no problem doing this.

How can I fix permissions so that files moved from my windows xp ntfs partition to my linux partition work when I am logged in as a normal user???

Use either your user id number, or your login name. This way you become the owner of the xp partition. If someone else is logged in and you have the permissions set for owner only access, then you have exclusive access (except for root).

The ntfs file system is currently read only, so chmod doesn't work. Instead use the options fmask= and dmask=. The fmask is for setting the permissions for the files on the ntfs partition. The dmask is for setting the directory permissions. So suppose you user name is 'johnd'.

Can anyone tell me what these numbers mean or point me in the direction of some documentation where I can find this out?

Thanks again

They're binary numbers. For instance chmod 777 <file> is equal to rwx-rwx-rwx(421-421-421), where the first group of numbers is for root, second is for users, third is for the whole world. If you wanted root to have full rights, users to have read & execute, and the world to have read-only access, use chmod 754 <file> (rwx--r-x--r--(421-401-400)).

I'm still a bit confused by what umask is supposed to do. Take a look at this extract from the second link that I posted above: -

"The umask value is subtracted from these default permissions after the function has created the new file or directory. Thus, a directory will have permissions of 775 by default, a file 664, if the mask value is (0)002."