Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I am using Gentoo with Kde 3.3.2 and have successfully mounted my existing windows partition via /mnt/windows but only as root. I am unable to access that partition as my regular user and even as root I can't seem to use xmms or mpg123 to play songs on that partition. Can anyone help me so my regular user can mount it and I can easily access all the files? Thanks!
Also, I reinstalled a program that I accidentally messed up but its the same messed up one when i launch it. How can I uninstall it (it was a normal tarball and i did make | make install etc) so I can install clean? Thanks.
For the windows files, is it NTFS. If so, I imagine that the everyone group has to have read access to the files. XP SP2 should have removed the everyone group from files.
Note the /dev/dvd line. The fourth item is 'noauto,user'. The user option allows normal users to mount this filesystem.
The other problem you mentioned was normal users not being able to access files within that filesystem. This is probably because the mount point /mnt/windows does not have the appropriate permissions set.
No. On some systems (e.g. like BeOS and Windows > 9x), you cannot access certain files from Linux even as root because the permissions are set from the other OS.
The only way to solve it is to reboot to the other OS as administrator and set the permissions for each file you want to allow users to read and/or write.
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:0$
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> $
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /mnt/windows ntfs defaults,noatime $
/dev/hda2 /boot ext3 defaults,noatime $
/dev/hda4 / ext3 noatime $
/dev/hda3 none swap sw $
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user $
#/dev/fd0 /mnt/floppy auto noauto $
# NOTE: The next line is critical for boot!
none /proc proc defaults $
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults
To be able to access those files that even root cannot access, you need to change file permissions from your other OS (Windows NT/2000/XP I guess) to allow users to read and/or write.
Last edited by vharishankar; 02-21-2005 at 01:49 AM.
Type in console:
man mount
This will provide you with the great amout of info about NTFS,FAT32,EXT2,EXT3... partition options, access options, etc...
Mans sometimes help
99% of the time I seem to be able to mount it fine as root . When I use mpg123 in console to play a song on the windows partition when im root, itll usually play (well it has been lately), sometimes with a little hesitation but thats not the issue. When I am as my regular user, access is denied to me at /mnt/windows. How can my regular user access it?
I think Harishankar was right when he said the permissions are set from the other OS. You'll have to change them from there. And I have no idea how you would do that.
I was just thinking about another possibility. NTFS is a proprietary to Microsoft. The module that comes with Linux for accessing NTFS partitions was made by kernel hackers through reverse engineering. Microsoft is not about to provide them with NTFS documentation. The NTFS module is far from complete. It just recently started providing write access to NTFS partitions, and this is extremely limited. What I'm getting at is that the linux NTFS module may simply be giving Linux some safe permissions. It may not know how to read them from the NTFS partition. You might be stuck with this the way it is. I was looking through more of my NTFS filesystem and here's what I found:
All files have this permission set: -r--------
All directories have this permission set: dr-x------
Everything's owning user and group is set to 'root'
I find it hard to believe that the permission setup in windows is so uniform.
FAT32, to my knowledge doesn't have user access lists similar to, say NFTS, Ext2/3. Even so, I've set Shares on the root and folders
I'm interested in to no avail.
root is owner and any attempts to change access rights to the
mount point /mnt/media make no difference.
Looks like all options must be specified at the time of reading /etc/fstab whilst booting. Has nothing to do with security settings
in windows, as previously suspected.
Not too sure on the mask at present (mount should hold answers when i get round to reading it but comma bit as follows:
user -> allows user to mount this volume(?)
gid=users -> makes users the group owner of the mount point
umask -> does something magical i don't yet understand.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.