Results 1 to 4 of 4

Thread: Permissions problem

  1. #1
    Join Date
    Oct 2006
    Beans
    32

    Permissions problem

    I have PVR1, acting as file server and mythbackend, with internal drive mounted at /mnt/media3
    I also have acerrevo acting as mythfrontend. I log onto each as user name mythuser.

    MythTv can't delete files, and I'm assuming this is because of permissions.

    Code:
    mythuser@PVR1:/mnt/media3/myth/recordings$ id mythuser
    uid=1001(mythuser) gid=125(mythtv) groups=125(mythtv),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),29(audio),30(dip),44(video),46(plugdev),105(scanner),107(fuse),109(lpadmin),115(admin),121(netdev),127(sambashare)
    Code:
    mythuser@acerrevo:/mnt/media3$ id mythuser
    uid=1001(mythuser) gid=1001(mythuser) groups=1001(mythuser),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),29(audio),30(dip),44(video),46(plugdev),104(fuse),112(netdev),119(admin),121(nopasswdlogin),122(sambashare),123(mythtv)
    I brute forced the solution earlier with chmod 777, but I want to get it right.

    My guess is the GID needs to match, and maybe UID?

    So on the client (acerrevo) to try and match the gid to the server, I did

    Code:
    mythuser@acerrevo:/mnt/media3$ groupmod --gid 125 123
    groupmod: group '123' does not exist
    what am I missing?

  2. #2
    Join Date
    Oct 2010
    Beans
    110
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Permissions problem

    Right click on a file and see who the owner is and who can change content. Also try removing a file with sudo using the terminal
    Code:
    sudo rm <file path/file name>

  3. #3
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Permissions problem

    ShadowVegan; Hi !
    As an observation, neither of your ends have "sudo" access. For reference, mine:
    sysop@1304mini:~$ iduid=1000(sysop) gid=1000(sysop) groups=1000(sysop),4(adm),24(cdrom),27(sudo),29(au dio),30(dip),46(plugdev),108(lpadmin),109(sambasha re)
    sysop@1304mini:~$
    27(sudo); do you need to add that user to the sudo group ?

    just a thought
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  4. #4
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Permissions problem

    as well as needing to do the groupmod from a 'sudo' account, you will probably need to give the actual target group name (mythtv), rather than its current gid i.e.

    Code:
    sudo groupmod -gid 125 mythtv
    e.g.

    Code:
    $ sudo groupadd --system mythtv
    $ 
    $ getent group mythtv
    mythtv:x:999:
    $
    $ sudo groupmod -g 127 999
    groupmod: group '999' does not exist
    $
    $ sudo groupmod -g 127 mythtv
    $ getent group mythtv
    mythtv:x:127:
    $
    Obviously the gid 125 needs to be available on the acerrevo machine (it wasn't on mine - which is why I used 127 above)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •