Fedora Linux Support Community & Resources Center
  #1  
Old 29th December 2011, 08:51 PM
johnbh Offline
Registered User
 
Join Date: Mar 2011
Location: MORWELL VICTORIA AUSTRALIA
Posts: 44
linuxfirefox
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 04:49 AM.
Reply With Quote
  #2  
Old 29th December 2011, 09:29 PM
JohnVV Online
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 47
Posts: 3,936
linuxfirefox
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.1-64bit & Scientific Linux 6.5-64bit ( fedora 4 to 11) and 19/20 on KVM
My Celestia Downloads

h t t p ://celestiamotherlode.net/catalog/show_creator_details.php?creator_id=10
Reply With Quote
  #3  
Old 30th December 2011, 01:04 AM
johnbh Offline
Registered User
 
Join Date: Mar 2011
Location: MORWELL VICTORIA AUSTRALIA
Posts: 44
linuxfirefox
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
Reply With Quote
  #4  
Old 30th December 2011, 01:55 AM
JohnVV Online
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 47
Posts: 3,936
linuxfirefox
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.1-64bit & Scientific Linux 6.5-64bit ( fedora 4 to 11) and 19/20 on KVM
My Celestia Downloads

h t t p ://celestiamotherlode.net/catalog/show_creator_details.php?creator_id=10
Reply With Quote
  #5  
Old 31st December 2011, 06:08 AM
johnbh Offline
Registered User
 
Join Date: Mar 2011
Location: MORWELL VICTORIA AUSTRALIA
Posts: 44
linuxfirefox
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 04:34 AM. Reason: rEmoved USB in reference to device
Reply With Quote
  #6  
Old 5th January 2012, 04:41 AM
johnbh Offline
Registered User
 
Join Date: Mar 2011
Location: MORWELL VICTORIA AUSTRALIA
Posts: 44
linuxfirefox
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
Reply With Quote
  #7  
Old 5th January 2012, 09:52 AM
hieronymous Offline
Registered User
 
Join Date: Jan 2012
Location: auckland
Posts: 77
linuxfirefox
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!
Reply With Quote
  #8  
Old 5th January 2012, 01:20 PM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,437
linuxfirefox
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
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot
Reply With Quote
  #9  
Old 6th January 2012, 06:40 AM
johnbh Offline
Registered User
 
Join Date: Mar 2011
Location: MORWELL VICTORIA AUSTRALIA
Posts: 44
linuxfirefox
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
Reply With Quote
Reply

Tags
backup external drive, denial, permission

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 23:56 (Tuesday, 30-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat