• Re: Media Server (again)

    From Carlos E.R.@robin_listas@es.invalid to alt.os.linux on Tue Mar 17 22:11:46 2026
    From Newsgroup: alt.os.linux

    On 2026-03-17 21:19, Paul wrote:
    Windows allows adding multiple users as file ownership. This means
    these two can "own" the file on my S: drive. The second one
    may have been assigned automatically by the system. Or, we can
    "force it" of course. The green bar in File Explorer may be present
    while a person belonging to the Administrator Group, receives
    an Implicit Takeown by the OS, due to the level of elevation
    that user possesses. A Limited User could not coerce the situation.

    Linux can have several users "almost own" the same file. But it is an
    added mechanism, not the original. It is done with ACLS.
    --
    Cheers, Carlos.
    ES🇪🇸, EU🇪🇺;
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to alt.os.linux on Tue Mar 17 21:51:32 2026
    From Newsgroup: alt.os.linux

    On Tue, 17 Mar 2026 22:11:46 +0100, Carlos E.R. wrote:

    Linux can have several users "almost own" the same file. But it is
    an added mechanism, not the original. It is done with ACLS.

    Linux ACLs cannot convey ownership privileges on anybody besides the
    actual file/directory owner. All they can do is offer finer-grained
    control of the usual accesses (read, write, execute) to multiple
    specified users and groups.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From J.O. Aho@user@example.net to alt.os.linux on Wed Mar 18 08:36:27 2026
    From Newsgroup: alt.os.linux

    On 17/03/2026 12.36, Jeff Gaines wrote:

    I was having real problems seeing my HP Proliant Microserver on the
    network so I had a break from it and have put Linux Mint xfce on an Asus 170-P box.

    Did all the same things and lo and behold I can see it on the network, I have clearly done something wrong on the HP.

    I have a 4 TB Iron wolf drive (ext4) in the HP box with my multimedia on
    it, presumably all "owned" by "jeff".

    All files are owned by an uid/gid (numeric values), then those are
    matched to the user/group listed in /etc/passwd and /etc/group.

    So when you create jeff on the Asus you have to see to that jeff gets
    the same uid/gid as he had on the HP.

    Don't forget that the directory you mount into need to have permissions
    that allows jeff to access it.

    If you decided to change the file owners, you can either use chown
    directly, but that will change all files, which may not be the case
    always, I would suggest to use find


    find /mount/point -uid <the number of the HP user jeff> -exec chown
    jeff:jeff {} \;

    I'm assuming that the group is named jeff too, this will only change
    owner of the files that are owned by jeff on the HP to the user jeff on
    the Asus, but will leave all other files unchanged. This is a life saver
    in case you would get the mount point wrong say for example you just set
    it to root.

    No you don't have to boot up the HP to see the uid, just do a ls -l it
    will have a number instead of a name, as long as there isn't another
    user on the Asus that has the same uid, in that case you will get their
    user name and then you could use the option
    -user <the HP jeff user name on the Asus>
    instead of the
    -uid <the number of the HP user jeff>
    --
    //Aho

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to alt.os.linux on Wed Mar 18 07:43:10 2026
    From Newsgroup: alt.os.linux

    On Wed, 18 Mar 2026 08:36:27 +0100, J.O. Aho wrote:

    So when you create jeff on the Asus you have to see to that jeff
    gets the same uid/gid as he had on the HP.

    There may be another way, if you don’t want to make a permanent change
    to the owner IDs on the volume. I was looking through the mount(8) man
    page <https://manpages.debian.org/mount(8)>, and discovered that a new filesystem-independent mount option has appeared at some point, called “X-mount.idmap”.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jeff Gaines@jgnewsid@outlook.com to alt.os.linux on Wed Mar 18 08:44:01 2026
    From Newsgroup: alt.os.linux

    On 18/03/2026 in message <n1v2vsFloj4U1@mid.individual.net> J.O. Aho wrote:

    I'm assuming that the group is named jeff too, this will only change owner >of the files that are owned by jeff on the HP to the user jeff on the
    Asus, but will leave all other files unchanged. This is a life saver in
    case you would get the mount point wrong say for example you just set it
    to root.

    Can I ask a follow up?

    I use JGGROUP on my Windows network, is there any benefit/disbenefit in setting up a JGGROUP on the Linux box and putting myself in it? I don't
    know its relevance (if any).
    --
    Jeff Gaines Dorset UK
    Most people have heard of Karl Marx the philosopher but few know of his
    sister Onya the Olympic runner.
    Her name is still mentioned at the start of every race.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Carlos E.R.@robin_listas@es.invalid to alt.os.linux on Wed Mar 18 11:25:17 2026
    From Newsgroup: alt.os.linux

    On 2026-03-18 08:43, Lawrence D’Oliveiro wrote:
    On Wed, 18 Mar 2026 08:36:27 +0100, J.O. Aho wrote:

    So when you create jeff on the Asus you have to see to that jeff
    gets the same uid/gid as he had on the HP.

    There may be another way, if you don’t want to make a permanent change
    to the owner IDs on the volume. I was looking through the mount(8) man
    page <https://manpages.debian.org/mount(8)>, and discovered that a new filesystem-independent mount option has appeared at some point, called “X-mount.idmap”.

    Wow. :-o

    I do not have all the options described in the web page, though.
    --
    Cheers, Carlos.
    ES🇪🇸, EU🇪🇺;
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From J.O. Aho@user@example.net to alt.os.linux on Wed Mar 18 12:12:45 2026
    From Newsgroup: alt.os.linux

    On 18/03/2026 08.43, Lawrence D’Oliveiro wrote:
    On Wed, 18 Mar 2026 08:36:27 +0100, J.O. Aho wrote:

    So when you create jeff on the Asus you have to see to that jeff
    gets the same uid/gid as he had on the HP.

    There may be another way, if you don’t want to make a permanent change
    to the owner IDs on the volume. I was looking through the mount(8) man
    page <https://manpages.debian.org/mount(8)>, and discovered that a new filesystem-independent mount option has appeared at some point, called “X-mount.idmap”.

    Yeah, but still marked as experimental and may not be available in all
    distros even if the man page may mention them. I did see those in the
    man page earlier this morning, but didn't mentioned them, as there is
    also mounting as user/group, I think this will in the long run replace
    the file system specific options to mount as special uid/gid, as not all
    has this feature today.
    --
    //Aho
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From J.O. Aho@user@example.net to alt.os.linux on Wed Mar 18 12:17:21 2026
    From Newsgroup: alt.os.linux

    On 18/03/2026 09.44, Jeff Gaines wrote:
    On 18/03/2026 in message <n1v2vsFloj4U1@mid.individual.net> J.O. Aho wrote:

    I'm assuming that the group is named jeff too, this will only change
    owner of the files that are owned by jeff on the HP to the user jeff
    on the Asus, but will leave all other files unchanged. This is a life
    saver in case you would get the mount point wrong say for example you
    just set it to root.

    Can I ask a follow up?

    I use JGGROUP on my Windows network, is there any benefit/disbenefit in setting up a JGGROUP on  the Linux box and putting myself in it? I don't know its relevance (if any).


    This more of a samba issue, but sure you may have easier discovery of
    your linux shares by the ms-windows machines. As I noted in earlier
    threads, I don't use samba and ms-windows nowadays supports NFS, so my
    skills is quite limited on the samba stuff.
    --
    //Aho
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Wed Mar 18 15:18:00 2026
    From Newsgroup: alt.os.linux

    On Wed, 3/18/2026 4:44 AM, Jeff Gaines wrote:
    On 18/03/2026 in message <n1v2vsFloj4U1@mid.individual.net> J.O. Aho wrote:

    I'm assuming that the group is named jeff too, this will only change owner of the files that are owned by jeff on the HP to the user jeff on the Asus, but will leave all other files unchanged. This is a life saver in case you would get the mount point wrong say for example you just set it to root.

    Can I ask a follow up?

    I use JGGROUP on my Windows network, is there any benefit/disbenefit in setting up a JGGROUP on  the Linux box and putting myself in it? I don't know its relevance (if any).


    Is this your idea of a workgroup ?
    The canonical value is like this.

    workgroup = WORKGROUP

    On Windows 7, they had HomeGroups as well as SAMBA. For
    some reason, in such cases, they used

    workgroup = MSHOME

    but that isn't particularly clever when trying to put
    everything on the same workgroup. Some of the VMs Microsoft
    offered for download, were set that way, and if at first
    you could not "see" them, using sysdm.cpl and editing
    the workgroup, could fix it.

    *******

    You can try the Arch article on SAMBA, it has a few ideas.
    Maybe you need Avahi running.

    https://wiki.archlinux.org/title/Samba

    There are a number of nameservers. Apple uses Bonjour.
    It's not necessarily the case, that a distro had no
    nameserver, but maybe you don't recognize whatever
    they are using.

    Paul

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jeff Gaines@jgnewsid@outlook.com to alt.os.linux on Wed Mar 18 22:16:09 2026
    From Newsgroup: alt.os.linux

    On 18/03/2026 in message <10petpb$4338$1@dont-email.me> Paul wrote:

    On Wed, 3/18/2026 4:44 AM, Jeff Gaines wrote:
    On 18/03/2026 in message <n1v2vsFloj4U1@mid.individual.net> J.O. Aho >>wrote:

    I'm assuming that the group is named jeff too, this will only change owner >>>of the files that are owned by jeff on the HP to the user jeff on the >>>Asus, but will leave all other files unchanged. This is a life saver in >>>case you would get the mount point wrong say for example you just set it >>>to root.

    Can I ask a follow up?

    I use JGGROUP on my Windows network, is there any benefit/disbenefit in >>setting up a JGGROUP on  the Linux box and putting myself in it? I don't >>know its relevance (if any).


    Is this your idea of a workgroup ?

    If you mean JGGROUP then yes, I have always used that, all my computer
    names begin with JG, my namespaces in Visual Studio begin with JG and my classes with J. Consistency is useful when it comes to maintenance.
    --
    Jeff Gaines Dorset UK
    Captcha is thinking of stopping the use of pictures with traffic lights as cyclists don't know what they are.
    --- Synchronet 3.21d-Linux NewsLink 1.2