I mounted a vfat32 under ~/Documents (I share my document files with
windows, mostly for my wife)

I am using Mandrake 10.1 Official. I did the same thing with the
Community edition.

Mistake - First I used harddrake to mount the drive where I wanted it. I
had to undo everything I did. Mandrake created the directory under root
user and thus I had only read permissions.

Solution
        1) create folder "~/Documents" as myself (not root) (~ means
home directory)
        2) manually edit "/etc/fstab" - change only the path (backup
first)
        3) reboot viola!

This is the line on my fstab:
"/dev/hdc4 /home/tc/Documents vfat
umask=0,iocharset=iso8859-1,codepage=850 0 0"

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Andrew Jorgensen
Sent: Tuesday, November 30, 2004 1:19 PM
To: Newbie Help
Subject: Re: [newbies] Mounting Questions

On Tue, 30 Nov 2004 00:52:15 -0700, Gary Hutton <[EMAIL PROTECTED]>
wrote:
> Help,
> 
> I have a mounting question.
> 
> I am using Mandrake 10 linux.
> I have mounted a windows hard drive computer using Samba.
> this has added this line in my /etc/fstab:
> 
> //abraham/Joseph /home/gary/Documents/Joseph smbfs
> user,credentials=/etc/samba/auth.abraham.gary 0 0
> 
> Then I use samba to mount or just reboot. This gives me a directory
> called Joseph in my Documents directory. I can read the files. The
> problem is the ower is root with permissions that look like this:
> 
> -rwxr--r--  1 root root     2685 Nov 21 22:53 Burgess.htm*
> 
> When I try to use the chmod command on the Joseph directory, nothing
is
> changed. The owner is still root. Here is the command I used:
> 
> chmod o=rwx Burgess.htm
> chmod 777 Burgess.htm
> 
> Apparently one cannot change rights on a mounted shared file from a
> windows box. ???

When you mount a smb share to linux it creates a mapping between user
names, so in your case root(linux)=gary(windows).  This means that
root has access to change stuff and nobody else does.  The problem
here is that you mounted it as root (by rebooting).  Your fstab should
probably have the noauto option in it (user,noauto,credentials...). 
Then you can mount it as yourself and (unless mandrake messed things
up for you) it will be owned by you.

> My question is how do I link as a regular user? or
> How do I change rights to files on a mounted directory? or
> How can I read and write to this directory?

You might be better off using Nautilus (if you use GNOME) or Konqueror
(if you use KDE) to access your files.  Both of these use
smb://host/share URLs and will prompt you for your name and password
and allow you to save the credentials if you want.

If this doesn't help please ask again and give better details.

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG.

___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/


--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/

Reply via email to