MandrivaThis Forum is for the discussion of Mandriva (Mandrake) 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.
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've just installed Mandriva and have a nagging problem. As ROOT, I can see all my partitions (including windows xp) and read from them. However, this is not possible as USER. I am able to mount but cannot read. I've tried playing aroung with fstab, and a coupla other settings, but this has been fruitless.
Thanks for the reply. I've pasted my fstab below and hope you will find it useful in assisting. Interestingly, I CAN read from all my partitions (this includes the partitionn with windows xp plus the 2 partitions on the ext HDD i.e. sda5) as ROOT. As USER, I can not.
I suspect that it has something to do with the limited file access facilities in the Mandriva kernel, when it comes to accessing NTFS file systems. Any other ideas?
I went in as root and right click>properties and gave read and write rights to user under permissions tab. The problem is that you have to do that with all files in the external hdd individually. If you only do this to the folders only, some of the files in them might not get changed for whatever reason.
To fix this you open a terminal either while logged in as root or you $ su -
to log into root from another user. Then cd to the directory above the partition's mount point eg:
# cd /mnt
Then issue a recursive chmod command to give read/write permissions to the files and subdirectories.
# chmod -R +r-w ./<mount point of your disk>
That should add read and write abilities for all users to all the files from your disk's mount point on down.
I've tried issuing a recursive call - AND FAILED! I get a READ ONLY FILE SYSTEM error message. That explains it! NTFS is automatically mounted with RW rights to ROOT only. The question now is how do I mount/remount so I give RW ability to USER so I am able to view my files (like I can when I log in as ROOT) as USER?
Try unmounting the drive changing the permissions on the mount point. If this is an nsf drive from another computer there are some nsf configs you'd need to do to resolve this issue. I can't remember them but when I dig out my notes on nsf i'll post more.
I figured it out in the end! The problem was that my drive was being mounted as read only, which is why each time I tried to chmod (as root) file access rights the error was always "Cannot change file permissions. Read-only file system." If the filesystem is read-only, then obviously you can't write to it to change file permissions in the first place.
Anyway, I've since installed the latest PowerPack (Mandrake) version and that problem is now sorted.
Thanks for the post. It was NTFS partitions actually. I didn't know Linux cannot write to these. The problem I was having was that it was mounting them as read-only. As user I was unable to access my external HDD, while trying chmod to change access rights as root failed. What could have been causing this?
Since Linux can't understand Windows permissions it imposes its own permissions on the drive, these are set in the mount options in /etc/fstab. Usually it will default to root only access but you can either add the option umask=0 (or umask=0222 for read only) to give everyone access to the partition. Alternatively use the options uid=yourusername,gid=yourusername to give one particular user (as well as root) access to the partition.
Quote:
while trying chmod to change access rights as root failed
Probably because its read-only, not really sure how chmod is mean to interract with permissions set on drives using fstab options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.