Announcement

Collapse
No announcement yet.

Can't View Drive Contents (Permissions needed)

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

    Can't View Drive Contents (Permissions needed)

    I try to open storage media>sdd1 from konqueror (sdd1 is an external hard drive connected via USB), and get the following error:

    You do not have enough permissions to read file:///media/sdd1

    Anyone know how to get "enough permissions?" I am logged in to kde as my own user. I know how to log in as root through konsole using "sudo su" but have no idea what commands to use to give my own user the proper permissions.

    Anyone?

    Thanks.

    #2
    Re: Can't View Drive Contents (Permissions needed)

    Addendum:

    Logged on to root, then used "chmod ugo+rwx sdd1" and got this:

    chmod: changing permissions of `sdd1': Read-only file system

    But listing the drives using "ls -al" I get:

    total 92
    drwxr-xr-x 7 root root 4096 2007-06-27 12:40 .
    drwxr-xr-x 21 root root 4096 2007-06-25 10:12 ..
    lrwxrwxrwx 1 root root 6 2007-06-25 17:35 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2007-06-25 17:35 cdrom0
    lrwxrwxrwx 1 root root 45 2007-06-25 17:36 .directory -> /etc/kubuntu-default-settings/directory-media
    --wS--s--T 1 root root 0 2007-04-17 14:25 .hal-mtab-lock
    lrwxrwxrwx 1 root root 42 2007-06-25 17:36 .hidden -> /etc/kubuntu-default-settings/hidden-media
    dr-xr-x--- 1 root plugdev 4096 2007-06-22 23:38 sda1
    drwxr-xr-x 2 root root 16384 2007-06-27 16:08 sda2
    drwxr-xr-x 3 root root 16384 1970-01-01 09:00 sdb3
    dr-x------ 1 root root 45056 2007-06-26 17:27 sdd1

    sdd1 is still showing read and execute but not write ("w"). And I still get the "not enough permissions" error from konqueror.

    I'm afraid I'm at a loss. Any ideas?

    Comment


      #3
      Re: Can't View Drive Contents (Permissions needed)

      Upon observing all the trouble that folks are having with their external USB drives, I've steadfastly resisted the temptation to buy one.

      But, there are about a zillion posts on this exact subject on the Ubuntu forum -- I assume there are solutions posted there as well. It sounds to me like the basic problem is the dynamic assignment of USB device ID's at the time they are plugged in to the bus, and the lack of association of a particular user (and his privileges) to random USB devices.

      Good luck -- if you discover a straightforward, universal solution it would be great if you would post it for all your fellow sufferers!

      Comment


        #4
        Re: Can't View Drive Contents (Permissions needed)

        Originally posted by dibl
        I've steadfastly resisted the temptation to buy one
        Why? I own two of them, and they work like a charm - with ReiserFS and Kubuntu 06.10 :P

        The combination of NTFS (via USB) and "Feisty" is what is causing all the trouble in question.

        Comment


          #5
          Re: Can't View Drive Contents (Permissions needed)

          Originally posted by UnicornRider
          they work like a charm - with ReiserFS and Kubuntu 06.10 :P
          Ahhhhhhhhhhhhhhhhhhhhhhhhh! Thank you, U.R. -- now I feel my courage rising! But, can it work in Feisty?

          Comment


            #6
            Re: Can't View Drive Contents (Permissions needed)

            Originally posted by dibl
            But, can it work in Feisty?
            "Out of the box":

            Code:
            USER # more /etc/issue
            
            Ubuntu 07.04
            
            USER # lsusb
            
            Bus 001 003: Freecom
            Bus 001 002: Western Digital
            
            USER # fdisk -l
            
            Disk /dev/sdb: 250.0 GB
            Disk /dev/sdc: 160.0 GB
            
            USER # more /etc/mtab | grep sd
            
            /dev/sdb1 /media/disk-1 reiserfs
            /dev/sdc1 /media/disk-2 reiserfs
            
            USER # ls -l /media
            
            drwxr-xr-x root root disk-1
            drwxr-xr-x root root disk-2

            Comment


              #7
              Re: Can't View Drive Contents (Permissions needed)

              Great -- thanks! Yes, I prefer reiserfs too -- especially after a power outage takes me down!

              Comment


                #8
                Re: Can't View Drive Contents (Permissions needed)

                Originally posted by dibl
                Great
                Wait, wait - I'm not finished yet:

                Code:
                USER # more /etc/fstab | grep id
                
                /dev/disk/by-id/usb-WDC_WD16_00BB-22GUC0_DEF10AC32D9E-0:0-part1 \
                 /media/data reiserfs noauto,users,rw 0 0
                /dev/disk/by-id/usb-WDC_WD25_00BB-22RDA0_D1000294-0:0-part1 \
                 /media/save reiserfs noauto,users,rw 0 0
                
                USER # mount /media/data <= this is not a joke
                USER # mount /media/save <= (not this time ...)
                
                USER # more /etc/mtab | grep sd
                
                /dev/sdb1 /media/save reiserfs <= aka "disk-1"
                /dev/sdc1 /media/data reiserfs <= aka "disk-2"
                Q.E.D.

                Comment


                  #9
                  Re: Can't View Drive Contents (Permissions needed)

                  Originally posted by UnicornRider

                  Code:
                  USER # mount /media/data <= this is not a joke
                  USER # mount /media/save <= (not this time ...)
                  
                  USER # more /etc/mtab | grep sd
                  
                  /dev/sdb1 /media/save reiserfs <= aka "disk-1"
                  /dev/sdc1 /media/data reiserfs <= aka "disk-2"


                  8) You are the Dr.!

                  Comment


                    #10
                    Re: Can't View Drive Contents (Permissions needed)

                    Originally posted by dibl
                    You are the Dr.!
                    Worse than that:

                    Code:
                    USER # ll /media
                    
                    drwxrwxrwx root root [...] data
                    drwxrwxrwx root root [...] save
                    
                    USER # mount [blabla]
                    
                    drwxr-xr-x root root [...] data <= WTH ???
                    drwxr-xr-x root root [...] save <= (Ditto.)
                    
                    ROOT # chmod 777 /media/data
                    ROOT # chmod 777 /media/save
                    
                    USER # unmount [blabla]
                    USER # remount [blabla]
                    
                    drwxrwxrwx root root [...] data <= :-)))
                    drwxrwxrwx root root [...] save <= :-)))

                    Comment


                      #11
                      Re: Can't View Drive Contents (Permissions needed)

                      Okay,

                      You guys are the heat. Now try to pretend your IQ is 20 points less for the original poster for a second.

                      How do I translate any of the above to a solution for my Feisty/USB/NTFS woes? Remember noob here; things like "Then open Konsole and type 'blah, blah'" help greatly!

                      Thanks.

                      Comment


                        #12
                        Re: Can't View Drive Contents (Permissions needed)

                        Originally posted by maxf15
                        Now try to pretend your IQ is 20 points less for the original poster for a second.
                        Ooops

                        Originally posted by maxf15
                        How do I translate any of the above to a solution for my Feisty/USB/NTFS woes?
                        My little "hack attack" simply proves that "Feisty" co-operates with USB disks
                        - provided they're featuring Linux file systems (which M$ NTFS is not ... sorry).

                        Comment


                          #13
                          Re: Can't View Drive Contents (Permissions needed)

                          For the life of me I can't read the contents of my external USB-connected hard drive. I used system settings>Disk and File Systems to mount the drive. No problem, I go in to Konsole, navigate to the media folder and the drive shows up. I try to look at the directory and get this error:

                          bash: cd: sda1: Permission denied

                          Using Konqueror I get this error:

                          You do not have enough permissions to read file:///media/sda1

                          The USB drive (sda1) has all my old data on it and I'd like to transfer it to an internal (FAT32 formatted) hard drive.

                          Can anyone help me view the contents of this drive? Or is it impossible for kubuntu to copy from an NTFS file system?

                          Comment


                            #14
                            Re: Can't View Drive Contents (Permissions needed)

                            Tried mounting it with the options "uid=1000,gid=1000" (assuming your UID and GID are 1000)?
                            For external use only.

                            Comment


                              #15
                              Re: Can't View Drive Contents (Permissions needed)

                              How do I get my UID, GID?

                              Comment

                              Working...
                              X