Re: Mount Permissions

2023-06-07 Thread David Wright
On Sun 04 Jun 2023 at 11:59:21 (-0400), ce wrote:
> I have a mountpoint where all files under it have a group `fuse`.
> 
> This is strange to me.
> 
> As far as I can remember, Ubuntu doesn't do this.

Is this a system that's been around since wheezy? Up until then,
Debian had a system group called fuse, but this was unnecessary
from jessie onwards. I'd guess it had never been cleaned up on
your system. For details, see:

  https://wiki.debian.org/SystemGroups

Cheers,
David.



Re: Mount Permissions

2023-06-07 Thread Elena DP
I think you have a partition with filesystem btrfs that uses compression
with lzop.
Perhaps inside of it you have a file that is a compressed filesystem (that
is fuse: *Filesystem in Userspace* )

what can you see when you type in
$ cd /mnt/part2
$ ls -la


El lun, 5 jun 2023 a las 6:32, ce () escribió:

> On 6/4/23 5:46 PM, Greg Wooledge  wrote:
>
>  > On Sun, Jun 04, 2023 at 11:59:21AM -0400, ce wrote:
>  > > I have a mountpoint where all files under it have a group `fuse`.
>  >
>  > You need to provide details, or else nobody can help you with anything.
>  >
>  > What kind of hardware is this file system on?
>  >
>  > What kind of file system is it?
>  >
>  > How did you mount it?  (Show the command you used, and any output that
>  > it produced.)
>  >
>  > What does "mount" with no arguments say about the file system?  (Hint:
>  > you can grep for the name of the file system.)
>  >
>  > What does the root level of the file system look like in "ls -la"?
>  >
>  > What did you EXPECT it to look like?
>  >
>  >
>
> sid amd64 with btrfs
>
> /etc/fstab:
>
> ```
> LABEL=part2 /mnt/part2 btrfs compress=lzo 0 1
> ```
>
> $ ls -l /mnt/part2
> ```
> drwxr-xr-x 1 me root 34 May 01 00:40 @subvolume
> ```
>
> $ ls -l /mnt/part2/@subvolume
>
> Some entries have user `me` but most entries have user `fuse`.
>
> Idk what mount says it's mounted automatically.
>
> chmod allows changing the group.
>
> Let's see what a reboot does.
>
>


Re: Mount Permissions (btrfs subvolumes)

2023-06-05 Thread ce

On 6/5/23 7:23 AM, Greg Wooledge  wrote:

>
> You can run the command "mount" with no arguments to see the details of
> each mounted file system.  You don't even have to be root.  I don't know
> how btrfs subvolumes work, so I don't know whether they appear in the
> output of mount, but you could try it and see.
>

This part is fine.  I think when no subvolume is peocified with `-o`, it 
will mount subvolid=5, the default subvolume.


Use `-o subvol=$NAME` to mount one of your choosing.

I'll be back to show the efects of `noauto`.



Re: Mount Permissions (btrfs subvolumes)

2023-06-05 Thread Greg Wooledge
On Sun, Jun 04, 2023 at 11:00:18PM -0400, ce wrote:
> On 6/4/23 5:46 PM, Greg Wooledge  wrote:
> > What kind of hardware is this file system on?
> >
> > What kind of file system is it?
> >
> > How did you mount it?  (Show the command you used, and any output that
> > it produced.)
> >
> > What does "mount" with no arguments say about the file system?  (Hint:
> > you can grep for the name of the file system.)
> >
> > What does the root level of the file system look like in "ls -la"?
> >
> > What did you EXPECT it to look like?
> 
> sid amd64 with btrfs
> 
> /etc/fstab:
> 
> ```
> LABEL=part2 /mnt/part2 btrfs compress=lzo 0 1
> ```
> 
> $ ls -l /mnt/part2
> ```
> drwxr-xr-x 1 me root 34 May 01 00:40 @subvolume
> ```
> 
> $ ls -l /mnt/part2/@subvolume
> 
> Some entries have user `me` but most entries have user `fuse`.
> 
> Idk what mount says it's mounted automatically.
> 
> chmod allows changing the group.
> 
> Let's see what a reboot does.

OK, thank you for the details.  Unfortunately, I know nothing about btrfs,
so I can't provide much help beyond this.  I can only address this part:

> Idk what mount says it's mounted automatically.

You can run the command "mount" with no arguments to see the details of
each mounted file system.  You don't even have to be root.  I don't know
how btrfs subvolumes work, so I don't know whether they appear in the
output of mount, but you could try it and see.



Re: Mount Permissions

2023-06-04 Thread ce

On 6/4/23 5:46 PM, Greg Wooledge  wrote:

> On Sun, Jun 04, 2023 at 11:59:21AM -0400, ce wrote:
> > I have a mountpoint where all files under it have a group `fuse`.
>
> You need to provide details, or else nobody can help you with anything.
>
> What kind of hardware is this file system on?
>
> What kind of file system is it?
>
> How did you mount it?  (Show the command you used, and any output that
> it produced.)
>
> What does "mount" with no arguments say about the file system?  (Hint:
> you can grep for the name of the file system.)
>
> What does the root level of the file system look like in "ls -la"?
>
> What did you EXPECT it to look like?
>
>

sid amd64 with btrfs

/etc/fstab:

```
LABEL=part2 /mnt/part2 btrfs compress=lzo 0 1
```

$ ls -l /mnt/part2
```
drwxr-xr-x 1 me root 34 May 01 00:40 @subvolume
```

$ ls -l /mnt/part2/@subvolume

Some entries have user `me` but most entries have user `fuse`.

Idk what mount says it's mounted automatically.

chmod allows changing the group.

Let's see what a reboot does.



Re: Mount Permissions

2023-06-04 Thread Greg Wooledge
On Sun, Jun 04, 2023 at 11:59:21AM -0400, ce wrote:
> I have a mountpoint where all files under it have a group `fuse`.

You need to provide details, or else nobody can help you with anything.

What kind of hardware is this file system on?

What kind of file system is it?

How did you mount it?  (Show the command you used, and any output that
it produced.)

What does "mount" with no arguments say about the file system?  (Hint:
you can grep for the name of the file system.)

What does the root level of the file system look like in "ls -la"?

What did you EXPECT it to look like?



Mount Permissions

2023-06-04 Thread ce

I have a mountpoint where all files under it have a group `fuse`.

This is strange to me.

As far as I can remember, Ubuntu doesn't do this.



Re: external USB hard drive mount permissions

2017-09-04 Thread James H. H. Lampert

On 9/2/17, 6:01 AM, Eduardo M KALINOWSKI wrote:

On 02-09-2017 09:29, Federico Beffa wrote:

I'm using Debian Stretch with Gnome. When I plug-in an external USB
hard drive (ext4) it gets automatically mounted at /media/beffa/label.


but the device is still only writable by root.

How can I tell the system to make it writable for the user owning the
Gnome session


You might also consider adding an FSTAB entry, using a "LABEL=" 
drive-ID, to map it to a mount point of your own choosing.


That's what I ended up doing.

--
JHHL



Re: external USB hard drive mount permissions

2017-09-02 Thread Federico Beffa
Federico Beffa  writes:

> Hi,
>
> I'm using Debian Stretch with Gnome. When I plug-in an external USB
> hard drive (ext4) it gets automatically mounted at /media/beffa/label.
> However, the drive is read-only for the user owning the Gnome shell
> (beffa). I've tried adding default ACL entries to /media/beffa as
> follows
>
> # file: .
> # owner: root
> # group: root
> user::rwx
> user:beffa:rwx
> group::r-x
> mask::rwx
> other::r-x
> default:user::rwx
> default:user:beffa:rwx
> default:group::r-x
> default:mask::rwx
> default:other::r-x
>
> but the device is still only writable by root.
>
> How can I tell the system to make it writable for the user owning the
> Gnome session or even everybody?

I'm just stupid! I just had to change permissions on the USB drive
filesystem :-)



Re: external USB hard drive mount permissions

2017-09-02 Thread Eduardo M KALINOWSKI
On 02-09-2017 09:29, Federico Beffa wrote:
> I'm using Debian Stretch with Gnome. When I plug-in an external USB
> hard drive (ext4) it gets automatically mounted at /media/beffa/label.
>
>
> but the device is still only writable by root.
>
> How can I tell the system to make it writable for the user owning the
> Gnome session

I don't think you can. The permissions are the permissions of the root
directory of the filesystem in the drive (which get mapped to
/media/beffa/label), and have nothing to do with the mount point.

>  or even everybody?

That's possible, just chmod 777 /media/beffa/label.

Or use a permission-less filesystem such as vfat.

-- 
Duct tape is like the force.  It has a light side, and a dark side, and
it holds the universe together ...
-- Carl Zwanzig

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



external USB hard drive mount permissions

2017-09-02 Thread Federico Beffa
Hi,

I'm using Debian Stretch with Gnome. When I plug-in an external USB
hard drive (ext4) it gets automatically mounted at /media/beffa/label.
However, the drive is read-only for the user owning the Gnome shell
(beffa). I've tried adding default ACL entries to /media/beffa as
follows

# file: .
# owner: root
# group: root
user::rwx
user:beffa:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:beffa:rwx
default:group::r-x
default:mask::rwx
default:other::r-x

but the device is still only writable by root.

How can I tell the system to make it writable for the user owning the
Gnome session or even everybody?

Thanks for your help!
Fede



Re: ntfs mount permissions

2004-05-11 Thread Micha Feigin
On Tue, May 11, 2004 at 03:15:12PM +0100, Matthew Kay wrote:
 Hi,
 
 I'm trying to mount my windows NTFS partition with 
 this line in my fstab:
 
 /dev/hda1   /mnt/winntfs 
 rw,auto,users,exec   0   0
 

Try

/dev/hda1   /mnt/winntfs ro,auto,users,exec,umask=0222   0   0

 It works fine with this or read-only (ro) option, 
 for root, but I can't get it to stay 
 user-readable. When I mount it as read-only I 
 can't chown/chmod it at all, and when I mount it 
 as read-write I can chown it but upon umounting 
 and remounting it reverts to the original 
 permissions (drwx-- root root).
 
 Any ideas?
 
 Thanks,
 Matt
 
 --
 Selwyn College
 Cambridge, UK
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact 
 [EMAIL PROTECTED]
 
 
 +++
 This Mail Was Scanned By Mail-seCure System
 at the Tel-Aviv University CC.
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



ntfs mount permissions

2004-05-11 Thread Matthew Kay
Hi,

I'm trying to mount my windows NTFS partition with 
this line in my fstab:

/dev/hda1   /mnt/winntfs 
rw,auto,users,exec   0   0

It works fine with this or read-only (ro) option, 
for root, but I can't get it to stay 
user-readable. When I mount it as read-only I 
can't chown/chmod it at all, and when I mount it 
as read-write I can chown it but upon umounting 
and remounting it reverts to the original 
permissions (drwx-- root root).

Any ideas?

Thanks,
Matt
--
Selwyn College
Cambridge, UK
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: ntfs mount permissions

2004-05-11 Thread Alvin Oga

hi ya matt

On Tue, 11 May 2004, Matthew Kay wrote:

 /dev/hda1   /mnt/winntfs 
 rw,auto,users,exec   0   0
 
 It works fine with this or read-only (ro) option, 
 for root,

root can do anything to itself, but necessarily to
a remote partition on a different machine

 but I can't get it to stay user-readable.

huh ??? if root umounted what it mounted, yes, 
it might start some problems

root's mask should prevent users from reading
root owned files 

 When I mount it as read-only I 
 can't chown/chmod it at all, 

i assume i mount meaning that user matt

because, you mounted it readonly

 and when I mount it as read-write I can chown it

good .. working as expected

  but upon umounting 
 and remounting it

with what options  and who remounting it

  reverts to the original 
 permissions (drwx-- root root).
 
 Any ideas?

do it the way it works ( explictly using rw when youn eed it )
or even better, use autofs or amd ( any automounter )

c ya
alvin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: ntfs mount permissions

2004-05-11 Thread Paul E Condon
On Tue, May 11, 2004 at 03:15:12PM +0100, Matthew Kay wrote:
 Hi,
 
 I'm trying to mount my windows NTFS partition with 
 this line in my fstab:
 
 /dev/hda1   /mnt/winntfs 
 rw,auto,users,exec   0   0
 
 It works fine with this or read-only (ro) option, 
 for root, but I can't get it to stay 
 user-readable. When I mount it as read-only I 
 can't chown/chmod it at all, and when I mount it 
 as read-write I can chown it but upon umounting 
 and remounting it reverts to the original 
 permissions (drwx-- root root).
 
 Any ideas?
 

NTfs is a Microsoft proprietary format for which open documentation is not
completely availalbe (and it is subject for change at the whim of 
Microsoft strategic planners). Do not attempt to write into such a file
system from Linux. Figure out another way to share data with a Microsoft
computer. Maybe you could move the data to a Samba server.

-- 
Paul E Condon   
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



mount permissions

2000-10-28 Thread Mr. Strockbine
when my FAT32 file systems are mounted at
boot time the owner and group are root.
As a regular user I can read files but not
write them.

I have the user option in my /etc/fstab file
like so:
/dev/hdc6  /matrox/mx6 vfat defaults,user 0 2

so I can `umount' and then `remount' as a regular
user and then I'm the owner and group and I have
read write permission.

so what's the point of having this file system
automatically mounted at boot time?  Or is there
another way around this?

- greg s.



Re: mount permissions

2000-10-28 Thread Russ Pitman
Use 'noauto' as an option in your fstab entry-- see man fstab .

On Fri, Oct 27, 2000 at 10:06:16PM -0700, Mr. Strockbine wrote:
 when my FAT32 file systems are mounted at
 boot time the owner and group are root.
 As a regular user I can read files but not
 write them.
 
 I have the user option in my /etc/fstab file
 like so:
 /dev/hdc6  /matrox/mx6 vfat defaults,user 0 2
 
 so I can `umount' and then `remount' as a regular
 user and then I'm the owner and group and I have
 read write permission.
 
 so what's the point of having this file system
 automatically mounted at boot time?  Or is there
 another way around this?
 
 - greg s.
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 
russ






Re: mount permissions

2000-10-28 Thread Ethan Benson
On Fri, Oct 27, 2000 at 10:06:16PM -0700, Mr. Strockbine wrote:
 when my FAT32 file systems are mounted at
 boot time the owner and group are root.
 As a regular user I can read files but not
 write them.
 
 I have the user option in my /etc/fstab file
 like so:
 /dev/hdc6  /matrox/mx6 vfat defaults,user 0 2
 
 so I can `umount' and then `remount' as a regular
 user and then I'm the owner and group and I have
 read write permission.
 
 so what's the point of having this file system
 automatically mounted at boot time?  Or is there
 another way around this?

do you really need to be able to mount/umount the filesystem as you?
i am guessing not, so i would change your fstab entry to:

/dev/hdc6  /matrox/mx6 vfat rw,noexec,uid=1000,umask=022 0 2

change uid= to your uid (run id -u as yourself to find this) if you
don't want other users to be able to see files on this filesystem
change umask to 077 instead of 022.  if you want a group to be able to
access it add gid= with the appropriate group id (numerical) and set
the umask appropriatly.  (027, 007, and 002 are all common candidates.)

-- 
Ethan Benson
http://www.alaska.net/~erbenson/


pgpnmKyNKjp7c.pgp
Description: PGP signature


Re: mount permissions

2000-10-28 Thread Shaul Karl
 when my FAT32 file systems are mounted at
 boot time the owner and group are root.
 As a regular user I can read files but not
 write them.
 
 I have the user option in my /etc/fstab file
 like so:
 /dev/hdc6  /matrox/mx6 vfat defaults,user 0 2
 
 so I can `umount' and then `remount' as a regular
 user and then I'm the owner and group and I have
 read write permission.
 
 so what's the point of having this file system
 automatically mounted at boot time?  Or is there
 another way around this?
 


In this case having this file system automatically mounted at boot time
only saves you the need for mount/umount it.
I know of two ways to accomplish what you want:

1. use mount uid and gid options:
[20:14:55 /tmp]$ grep MS /etc/fstab 
/dev/hda1   /MS vfatdefaults,noauto,umask=002,uid=0,gid
=500 0   0
[20:15:03 /tmp]$ grep dos /etc/group
dos:x:500:shaul
[20:15:14 /tmp]$ 

2. use the mtools. 
This will eliminate the need for mount/umount.
[20:16:25 /tmp]$ mdir c:/linux
 Volume in drive C has no label
 Volume Serial Number is 2820-11DF
Directory for C:/linux

.DIR 12-14-1998  12:38 
..   DIR 12-14-1998  12:38 
loadlin  exe 32208 05-01-1996   0:44 
linuxb~1 bat44 06-30-2000  22:39  linux.bat.bat
vmlinu~1 17 461562 09-19-2000  22:31  vmlinuz-2.2.17
5 files 493 814 bytes
139 886 592 bytes free

[20:16:46 /tmp]$ 


 - greg s.
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 

Shaul Karl [EMAIL PROTECTED]




/dev/hdc1 Mount Permissions

1998-02-01 Thread Art Lemasters
  Now, for the reason this is coming from my M$ OS.
I mounted a second, older hard drive to use as /home.
Although I set permissions for the one user (me) with
chown and chmod, I still do not have access to the
device (/dev/hdc1 mounted in /home).  Do any of you
have any ideas as to the cause or a solution?  I am a
newbie, using the stable (bo) distribution.

  Art Lemasters


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: /dev/hdc1 Mount Permissions

1998-02-01 Thread Remco Blaakmeer
On Sun, 1 Feb 1998, Art Lemasters wrote:

   Now, for the reason this is coming from my M$ OS.
 I mounted a second, older hard drive to use as /home.
 Although I set permissions for the one user (me) with
 chown and chmod, I still do not have access to the
 device (/dev/hdc1 mounted in /home).  Do any of you
 have any ideas as to the cause or a solution?  I am a
 newbie, using the stable (bo) distribution.

Well, what does the 'mount' command say? How do the permissions look? Can
you execute these commands (once with /home mounted and again with /home
unmounted) and mail the output?

mount
ls -la /home

Remco


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: /dev/hdc1 Mount Permissions

1998-02-01 Thread Art Lemasters
On  1 Feb 98 at 11:18, Remco Blaakmeer wrote:
 On Sun, 1 Feb 1998, Art Lemasters wrote:
Now, for the reason this is coming from my M$ OS.
  I mounted a second, older hard drive to use as /home.
  Although I set permissions for the one user (me) with
  chown and chmod, I still do not have access to the
  device (/dev/hdc1 mounted in /home).  Do any of you
  have any ideas as to the cause or a solution?  I am a
  newbie, using the stable (bo) distribution.
 
 Well, what does the 'mount' command say? How do the permissions look? Can
 you execute these commands (once with /home mounted and again with /home
 unmounted) and mail the output?
 
 mount
 ls -la /home

mount /dev/hdc1 /home

drw-rwx--- 4   username   root  1024  Jan  31 12:15   .
drwxr-xr-x 19  root   root   1024 Nov 27 20:05  ..
drw-rwx--- 13 username   root   1024 Jan   31 12:16 username
drw-rwx---   2 username   root  12288 Jan  31  10.16 lost + found

 I tried to send this upon receiving your generous reply,
but the listserv did not return the usual confirmation after
it was sent.  Apparently, it can not accept mail from my
root, even though I dial in through a dynamic IP.  H...
That might be called a good feature!  Thanks for helping,
Remco.
 _Art


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .