LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need Access To Windows Partition Without Being Logged As Root (https://www.linuxquestions.org/questions/linux-software-2/need-access-to-windows-partition-without-being-logged-as-root-276925/)

Superme 01-12-2005 11:03 AM

Need Access To Windows Partition Without Being Logged As Root
 
i have some problems, i need files on my windows partition and i have the partition mounted i just need to be able to access it when im not logged in as root, because a program i use needsme to be a regular user not root!?!

is it possible to mount my windows partition without being root

im running suse9.0 profesional and im in KDE

??

rjlee 01-12-2005 11:25 AM

Yes. You need to add the user option to the partition for a regular user to add the drive. Alternatively, you could remove the noauto option to cause it to be automatically mount at boot time.

I think that you can do this though YaST, but you can also do it in /etc/fstab. For details:
Code:

man fstab
NB: There are a couple of other security points that must be met before regular users can access the drive, but not (I think) for mounting it.

sludink 01-12-2005 03:36 PM

To be a bit more precise, you should read the 'mount' man page, especially the part "Mount options for fat".
I have done this once, and used something like: (in mount options column in fstab, see man fstab:)
gid=010,umask=333.
This should give al files in the windows partitions the permissions 555, (see man umask) which means everybody may execute and read the files. Execute is important, since dirs should be executable to ask for its contents!
The gid-thing means the group whith number 10 (normally wheel) are the group owners of al files, and since anybody including group may execute the files, users which are a memeber of wheel may execute them. But notice this isn't important, since the permission becomes 555, which means EVERYBODY may execute and read the files. Change the values of gid and umask to you're needs, and instead of gid=010 you could use uid=100, where uid, in this case 100, is you're user-id number.
You can find group and user-id numbers respectively in /etc/groups and /etc/passwd.

homey 01-12-2005 04:10 PM

Here's how my entry in the /etc/fstab looks. The entry is for /dev/hdb1 fat partition.
After making the changes in your /etc/fstab, this is one of those rare occasions where you might need to reboot for things to take effect.

To make it writable for users with a group id of 500, edit the /etc/fstab file to include the following line /dev/hdb1 /mnt/win vfat gid=500,umask=002 0 0

To give the user complete control of that directory, try something like this in the fstab....
/dev/hdb1 /mnt/win vfat uid=500,gid=500,umask=000 1 0

Superme 01-12-2005 08:55 PM

OK il give that a shot thanks so much


All times are GMT -5. The time now is 02:55 PM.