Re: mount msdos partition with user id?

2003-06-20 Thread Zhang Le
On Thu, Jun 19, 2003 at 06:30:30AM -0300, Han Hwei Woo wrote:
> It's been a while since I've done this, but if I remember correctly, you'll
> want to use -u rather than -o. Try 'man mount_msdos' and playing around with
> some of the options.
Cool! It works.
And after putting the lines in /etc/fstab:
/dev/da0s1  /d  msdos   rw, noauto,-u=zl  0   0
I get it mounted every time the system boot.

Thank you and others who reply me.
--
 Sincerely yours,
Zhang Le

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


[doc pointer] Re: mount msdos partition with user id?

2003-06-19 Thread Lowell Gilbert
"Zhang Le" <[EMAIL PROTECTED]> writes:

> Hello, 
>   I just move from linux to bsd and have a question on mounting  partition with a 
> specific user id. The following command does not work:
>   root@:/home/zl/etc# mount -t msdos -o uid zl /dev/ad0s1 /d
>   msdos: -o uid : option not supported
> 
>   but "mount -t msdos /dev/ad0s1 /d" works.
> 
>   I have to su root each time I want to write something to /d. This is of course 
> very boring.
> 
>   Could you help me out?

There are a couple of different ways to do this.  
See "man mount_msdos" for full details.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount msdos partition with user id?

2003-06-19 Thread Joe Altman
On Thu, Jun 19, 2003 at 01:31:50AM -0600, Zhang Le wrote:
> Hello,
>   I just move from linux to bsd and have a question on mounting
partition with a specific user id. The following command does not
work:
>   root@:/home/zl/etc# mount -t msdos -o uid zl /dev/ad0s1 /d
>   msdos: -o uid : option not supported
> 
>   but "mount -t msdos /dev/ad0s1 /d" works.
> 
>   I have to su root each time I want to write something to /d. This is of course 
> very boring.

Would a change of permissions on the drive help, along with the
appropriate entry in /etc/fstab and an addition to group wheel?

Here is what I remember doing:

1) created the entry in /etc/fstab to mount the drive at boot,
   something like:

   /dev/ad1s1c  /msdos   ufs rw   2   2

NB: I had to create the /msdos directory, of course. I didn't want to
use /mnt, for some reason. But you could use /mnt, if you wish.

2) changed perms on the mount point to 77x, which was owned by
   root:wheel

3) put me in group wheel

I think this is what I did, and was all that was needed, and I could
modify the contents at will. Unfortunately, it was some time ago that
I did this, so it's possible I left something out.

HTH.

-- 
Free the West Memphis Three
http://www.wm3.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount msdos partition with user id?

2003-06-19 Thread Han Hwei Woo
It's been a while since I've done this, but if I remember correctly, you'll
want to use -u rather than -o. Try 'man mount_msdos' and playing around with
some of the options.

- Original Message - 
From: "Zhang Le" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 4:31 AM
Subject: mount msdos partition with user id?


> Hello,
>   I just move from linux to bsd and have a question on mounting  partition
with a specific user id. The following command does not work:
>   root@:/home/zl/etc# mount -t msdos -o uid zl /dev/ad0s1 /d
>   msdos: -o uid : option not supported
>
>   but "mount -t msdos /dev/ad0s1 /d" works.
>
>   I have to su root each time I want to write something to /d. This is of
course very boring.
>
>   Could you help me out?
>
> -- 
>  Sincerely yours,
> Zhang Le
>
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"