Announcement

Collapse
No announcement yet.

Chown trouble

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Chown trouble

    I have created a partition to store movies and stream them to my tv.
    The owner of the folder with the movies is "root".
    To copy/edit/add or delete any of these movies i have kdesudo into Dolphin.
    So i tried to change ownership in the permission dialoque box while kdesudo'd in Dolphin. That doesn't work
    This is the output from konsole while trying to change permission
    Code:
    gerard@gerard-iMac:~$ kdesudo dolphin
    Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    kbuildsycoca4 running...
    QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
    QFileSystemWatcher: failed to add paths: /root/.config/ibus/bus
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QObject::connect: Cannot connect (null)::resourceScoreUpdated(QString, QString, QString, double) to NepomukPlugin::resourceScoreUpdated(QString, QString, QString, double)
    QObject::connect: Cannot connect (null)::recentStatsDeleted(QString, int, QString) to NepomukPlugin::deleteRecentStats(QString, int, QString)
    QObject::connect: Cannot connect (null)::earlierStatsDeleted(QString, int) to NepomukPlugin::deleteEarlierStats(QString, int)
    kactivitymanagerd(3420)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
    QFileSystemWatcher: failed to add paths: /root/.kde/share/config/activitymanager-pluginsrc
    "/org/freedesktop/UDisks2/drives/APPLE_SD_Card_Reader_000000009833" : property "Drive" does not exist 
    "/org/freedesktop/UDisks2/drives/OCZ_VECTOR_OCZ_0119QWH76D7Z1677" : property "Drive" does not exist 
    "/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRW__GA11N_KZZ99C65745" : property "Drive" does not exist 
    "/org/freedesktop/UDisks2/drives/OCZ_VECTOR_OCZ_0119QWH76D7Z1677" : property "DeviceNumber" does not exist 
    "/org/freedesktop/UDisks2/drives/OCZ_VECTOR_OCZ_0119QWH76D7Z1677" : property "Device" does not exist 
    QPixmap::scaled: Pixmap is a null pixmap
    dolphin(3395)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    dolphin(3395)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    dolphin(3395)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    dolphin(3395)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    dolphin(3395)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    dolphin(3395)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    dolphin(3395)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusObjectPath: invalid path ""
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    [B][I][I][I][COLOR="#A52A2A"]"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRW__GA11N_KZZ99C65745" : property "Drive" does not exist[/COLOR] [/I][/I][/I][/B]
    The last line comes up when i click OK
    Then i tried using Konsole with the following command:
    Code:
    gerard@gerard-iMac:~$ sudo chown gerard /mnt/Movies
    [sudo] password for gerard: 
    chown: changing ownership of ‘/mnt/Movies’: Operation not permitted
    I can watch the movies allright so the drive does exists.
    Anyone any idea what's going on here.
    Last edited by GerardV; Nov 04, 2013, 03:12 AM.
    sigpic

    #2
    I have a samba/media server and I have the shares pointed to /mnt/Homes and /mnt/Shares. I added a couple cifs lines to fstab to auto mount those mount points and they show up on Dolphin alright. My Shares are owned by nobody:nogroup on the server and they're listed as pat:nogroup in /mnt on my computer.
    IOW. have you tried adding /mnt/Movies to your fstab yet?
    I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

    Comment


      #3
      ls output of the mount and details of the mounting method would be helpful. The permission of mounted filesystems is handled differently than system hosted filesystems. The permissions of the mounted filesystem override the those of the mount location.

      Not to criticize your choice of storage methods, but you might benefit from doing it differently. If your goal is to protect non-root users from deleting your media files you might consider creating a special user account just for your media or using a specific group to permit your access while prevent others from doing so. I can think of several ways to accomplish this.

      Re, the dolphin not working: Honestly, the best (easiest) way to use Dolphin as root is to install the root access servicemenu. Then root action is only a right-click away.

      Please Read Me

      Comment


        #4
        Buddlespit, i have added /mnt/Movies to my fstab and it looks like this:
        Code:
        # /etc/fstab: static file system information.
        #
        # Use 'blkid' to print the universally unique identifier for a
        # device; this may be used with UUID= as a more robust way to name devices
        # that works even if disks are added and removed. See fstab(5).
        #
        # <file system> <mount point>   <type>  <options>       <dump>  <pass>
        # / was on /dev/sda1 during installation
        UUID=238786ec-72df-4cb9-92db-604a86279618 /               ext3    errors=remount-ro 0       1
        # /home was on /dev/sda5 during installation
        UUID=eb07060e-4f4d-4791-b582-15349c6e911a /home           ext3    defaults        0       2
        # swap was on /dev/sda6 during installation
        UUID=9d11dce7-78db-4f6f-89f9-2370f5bf1d4a none            swap    sw              0       0
        /dev/sda3       /mnt/Music        vfat      defaults				  0    0                                                                                      
        /dev/sda4       /mnt/Movies       vfat      defaults                              0       0
        Looking at it now, the same thing happens to my /Music folder so i might left something out of the fstab entries.
        Oshunlovr, i just discovered that i had that root access service menu all the time, never noticed it.
        So I tried using that, but with the same results. It will not change ownership.
        I am the only one in this houshold that uses this pc, so i am quite happy with the current setup.
        Hope this will help a bit, guys.
        sigpic

        Comment


          #5
          I am the only one in this houshold that uses this pc
          I guess my point to asking whether or not you were protecting data from other users is because if you're not, why make this so difficult? I also have to ask why use vfat? It's slow, doesn't allow long file names, doesn't journal, etc. If if you're using windows to access it as well, at least NTFS is quicker. Even ext3 is way outdated. Anyway - all that is up to you.

          You can mount vfat using uid=1000 and gid=1000 options and it should give you file level rw access without sudo. Adding users will allow you to mount and unmount without sudo.

          This will show you current mount settings:

          sudo cat /proc/mounts

          You can try your mount options from the command line first:

          sudo mount -o remount,rw,users,uid=1000,gid=1000 /dev/sda3 /mnt/Music

          Please Read Me

          Comment


            #6
            Oshunluvr, i added uid=1000 to the fstab entries and have now file level access, thanks very much.
            The reason for that partition is that i don't have enough space on my /home fot all the movies.
            I got a T-Box last week, a media streamer supplied by our local telco, Telstra, but that allows only Win7 pc's to connect to it with WiFi out of the box.
            The one way around it was for me to install Plex Media Manager to act as a server. And that works great.
            But i wasn't sure if it could read ext3 or 4 file systems, so to be on the safe side, i formatted in fat32.
            sigpic

            Comment


              #7
              That's cool. just my own thoughts on what I saw. Free advice is worth what you pay for it...lol.

              Glad I helped a bit.

              Please Read Me

              Comment


                #8
                At first glance, I thought this was a thread about "Clown trouble." I need to slow down! LOL

                Comment


                  #9
                  Originally posted by SteveRiley View Post
                  At first glance, I thought this was a thread about "Clown trouble." I need to slow down! LOL
                  No, no, Steve - we weren't discussing you again

                  :ROFL:

                  Please Read Me

                  Comment


                    #10
                    Originally posted by oshunluvr View Post
                    No, no, Steve - we weren't discussing you again
                    Well then get busy! LOL

                    Comment

                    Working...
                    X