Permission denial
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2011
    Location
    MORWELL VICTORIA AUSTRALIA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face {SOLVED} Permission denial

    G'day! I've returned to Fedora after many years using Ubuntu and more recently Linux Mint - and I'm finding Fedora 16 a bit of a challenge - with all the different ways of achieving things.

    I've installed Deja_Dup, have setup an external HDD using Terminal and setup Deja_Dup to suit the directories on the HDD. However I get the following error message when I initiate a BU:

    Permission denied when trying to create ‘/media/Medion-BU/Fedora-KDE/duplicity-
    full.20111229T203025Z.vol1.difftar.gz’.

    The HDD partition has been set up as an Extended partition and formatted to ext3 - with Medion-BU as the main directory with 3 subdirectories including Fedora-KDE.

    I'm really puzzled by this message as the directories are already created on the HDD. Does it mean acces to the HDD is denied or what? If it is the lattter, what do I do to provide access to the HDD?

    Can really do with some help with this one.

    Cheers john
    Last edited by johnbh; 27th January 2012 at 05:49 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Ann Arbor
    Age
    54
    Posts
    3,947
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Permission denial

    you need to be root to write to the drive ( default settings)
    change how you are mounting it
    udev or fstab
    OpenSUSE 13.2-64bit & Scientific Linux 6.6-64bit ( fedora 4 to 11) and 20 on KVM
    My Celestia Downloads

    h t t p ://celestiamotherlode.net/catalog/show_creator_details.php?creator_id=10

  3. #3
    Join Date
    Mar 2011
    Location
    MORWELL VICTORIA AUSTRALIA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Permission denial

    Thanks JohnVV. Can't find any reference to udev or fstab in Bash Command Index!!

    How do you use these?

    How do you change how the drive is mounted?


    Cheers johnbh

    ---------- Post added at 12:04 PM ---------- Previous post was at 11:59 AM ----------

    It's OK found info about these items. Will follow this through.

    Thanks again JohnVV

    Cheers johnbh

  4. #4
    Join Date
    Aug 2005
    Location
    Ann Arbor
    Age
    54
    Posts
    3,947
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Permission denial

    /etc/fstab is the file you edit to manually have things auto mounted
    the udev rules are a newer system for mounting drives and hardware

    most just use fstab to mount drives and partitions


    run ( WITH the drive plugged in )
    Code:
    su -
    fdisk -l
    the output of that is your partition layout
    from that get your location for that partition ( /dev/???? -- /somthing? )
    /dev/sdb4 , /dev/sdc1, ....
    or
    /dev/usb? ( if it is a usb drive )

    something like that

    then read the man page for the fstab file
    Code:
    man fstab
    this is very basic linux 101 stuff that Ubuntu and Mint also use -, fedora is no different in this


    Also is there an "SeTroubleShooter" massage ( a gold star in the top right of the desktop manager )
    OpenSUSE 13.2-64bit & Scientific Linux 6.6-64bit ( fedora 4 to 11) and 20 on KVM
    My Celestia Downloads

    h t t p ://celestiamotherlode.net/catalog/show_creator_details.php?creator_id=10

  5. #5
    Join Date
    Mar 2011
    Location
    MORWELL VICTORIA AUSTRALIA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Permission denial

    Can't make much sence of this. I get a message stating that the 80Gb HDD is not available or it's waiting for the connection to be made. Now I can't get any USB devise to be mounted by Fedora 16. Getting deeper into the mire ........

    Following is a copy of the /etc/fstab file

    /devsda3 / ext4 defaults 1 1
    /devsda4 /home ext4 defaults 1 2
    /dev/sda2 swap swap defaults 0 0
    /dev/sde1 /media/Medion-BU auto rw, auto, user, exec 0 0

    /dev/sde1 - is as fdisk -l The external HDD has been reformatted as ext3 and given the Label Medion-BU and a partition Fedora-kde.

    I'm going around in ever decreasing circles ...... What have I stuffed up so that no device will mount when plugged in?

    Frustrated ... Time for a tinny! Cheers John
    Last edited by johnbh; 5th January 2012 at 05:34 AM. Reason: rEmoved USB in reference to device

  6. #6
    Join Date
    Mar 2011
    Location
    MORWELL VICTORIA AUSTRALIA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Permission denial

    Setting up Deja-Dup with Linux Mint was easy, none of this drive not available or permission denied, just put the directory names in the boxes and away it went. Fedora 16 is at the other end of the spectrium in terms of difficulty in establishing a backup that works.

    I must be missing the obvious but .....
    Either the external hard drive is not available or permission is denied -

    # /etc/fstab
    # Created by anaconda on Tue Jan 3 09:28:37 2012
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=92678740-5baa-4756-b810-b7c268b2ac87 / ext4 defaults 1 1
    UUID=bbb76922-667f-4b22-b79e-216494cd2f06 /home ext4 defaults 1 2
    UUID=3c024da3-8170-4847-816c-986290708b28 swap swap defaults 0 0
    #/dev/sde1 /Medion-BU auto rw, nonauto, user 0 0
    #Permission denied in creating /Medion-BU/Fedora-kde
    #/dev/sde1 /media/Medion-BU auto rw, auto, user 0 0
    #Permission denied!
    /dev/sde1 /Medion-BU auto defaults 0 0
    #Permission denied
    /dev/sde1 /Medion-BU auto rw, noexec 0 0
    #Permission denied

    These are some of the attempts as setting up stab to facilate an external HDD .

    I would appreciate advice of where I'm going wrong.

    John

  7. #7
    Join Date
    Jan 2012
    Location
    auckland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Permission denial

    Hi johnbh

    This is how I see your situation:

    You have set up an external HDD with ext3 folders - when you plug this in your folders will initially be owned by root, so you have a permission problem to remedy. You are running Deja-Dup as user, so your destination folder also needs to be owned by user.

    When you plug in your HDD it should automount in /media using your disklabel as a directory - you shouldn't have to edit fstab. Editing fstab is appropriate for permanent mounting of partitions, local or server, but not for usb. /media is now created in ram, so any temporary connection info is wiped on shutdown. Restore fstab the way you initially found it, and just check what is mounted after you start your HDD to confirm it is mounted.

    As root, change the ownership of your HDD sub-folders to your login and group
    sudo chown 'owner':'group' /media/Medion-BU/Fedora-KDE (e.g sudo chown john:john /media/....)

    Try Deja-Dup again!

  8. #8
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    41
    Posts
    4,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Permission denial

    Have you tried to chown the mountpoint instead, if thats not messing up with data on it.
    Like:
    Code:
    sudo chown johnbh /Medion-BU -R
    * Shell Wrapper and Runtime Modifier (SWARM): https://github.com/sri-arjuna/SWARM
    * Yet Another Simple Script Installer (YASSI): https://forums.fedoraforum.org/showthread.php?323099
    * EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    * Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  9. #9
    Join Date
    Mar 2011
    Location
    MORWELL VICTORIA AUSTRALIA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Re: Permission denial

    hieronymous - success! Beautiful!. Worked like a dream.

    Thanks a million. I can now carry on a build around F16 with confidence of a secure backup system.

    Fantastic..

    Cheers johnbh

Similar Threads

  1. AVC Denial
    By littlegriff in forum Security and Privacy
    Replies: 2
    Last Post: 31st July 2010, 07:52 PM
  2. Apache permission denial, even after changed permissions
    By xXtripsXx in forum Servers & Networking
    Replies: 16
    Last Post: 21st June 2010, 02:00 PM
  3. Logout denial
    By The_Source_HIM in forum Security and Privacy
    Replies: 1
    Last Post: 10th October 2008, 03:01 PM
  4. AVC Denial Problem
    By xtasyarmada in forum Using Fedora
    Replies: 3
    Last Post: 24th September 2008, 09:10 PM

Tags for this Thread

Posting Permissions

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