Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
When I enter <ls -l /mnt/Win98> as a normal user I get bunch of permission denied.
If I enter <ls -l> from /mnt as normal user I can then view the directory's attributes which are:
"drwxr--r-- 43 root root 4096 2005-02-23 12:25 Win98"
When I enter <ls -l /bin/mount> the attributes displayed are:
"-rwsr-xr-x 1 root root 76888 2004-09-23 23:34 /bin/mount"
When I enter the command as normal user <mount -t vfat /dev/hda1 /mnt/Win98> I get: "mount: only root can do that". Looking at the attributes for mount I don't understand why I can't use it. Also, <type mount> = "mount is hashed (/bin/mount)".
Now I am going to <su>...done.
Enter <mount -t vfat /dev/hda1 /mnt/Win98> I get the message:
"mount: according to mtab, /dev/hda1 is already mounted on /mnt/Win98". So it seems to be mounted at bootup.
Exit su (Ctrl-d).
As root I have tried:
<chmod ugo=xrw /mnt/Win98>
<chmod 777 /mnt/Win98>
<find /mnt/Win98 -type d exec chmod 777 {} \;>
Know matter what I do, I can view /mnt/Win98 as root only. I have searched and searched, but nothing seems to work. This is driving me crazy. Is there a text file I can manually enter the permissions into?
after of course ensuring that you have created a "win" directory in the "mnt" directory?
This works fine on Rh9 - I can read/write my windows partition as any user. Take note though that Linux cannot as yet write NTFS - so if your XP partition is NTFS formatted, you're outta luck. I specifically installed XP so that it was forces to use FAT32, since I wanted Linux compatibility with the the XP partition.
the problem is VFAT does not support owner/group/others-permissions, so all files and directories are owned by only one user - the mounting user by default. I have a line like this in my /etc/fstab:
/dev/hdb1 on /mnt/wine type vfat (rw,noexec,nosuid,nodev,codepage=850,user=aeichner)
wich means, all files are owned by the mounting user (the user= entry). If you set the option "auto" in the fstab, the mounting user at system startup is a root-process and all files will be owned by root.
A good solution for using the auto-option would be to explicitly set owner-, user-id and/or umask/dmask as mount-option in fstab.
So if you want to use the auto-option in fstab, use other options (fat and vfat-sections in "man mount") to modify the default behaviour.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.