Operation not permitted

Asked by Chinmay Nautiyal

On clicking backup now error shows :

An error occured making /media/data/Data/cb&c backup:
Exception '[Errno 1] Operation not permitted: '/media/winxp/bkup'' raised of class '': File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main try: Main(arglist) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main take_action(rps) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 271, in take_action elif action == "backup": Backup(rps[0], rps[1]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 324, in Backup backup_set_rbdir(rpin, rpout) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 381, in backup_set_rbdir rpout.chmod(0700) # just make sure permissions aren't too lax File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 826, in chmod self.conn.os.chmod(self.path, permissions & Globals.permission_mask) Traceback (most recent call last): File "/usr/bin/rdiff-backup", line 23, in rdiff_backup.Main.error_check_Main(sys.argv[1:]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main try: Main(arglist) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main take_action(rps) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 271, in take_action elif action == "backup": Backup(rps[0], rps[1]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 324, in Backup backup_set_rbdir(rpin, rpout) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 381, in backup_set_rbdir rpout.chmod(0700) # just make sure permissions aren't too lax File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 826, in chmod self.conn.os.chmod(self.path, permissions & Globals.permission_mask) OSError: [Errno 1] Operation not permitted: '/media/winxp/bkup'

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu keep Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

If it is the very first time you make something with keep ( i don't know it ) the error code showed here seems be related with permission of /media/winxp/bkup

When you get this error...?

Check this thread it seems like your and it is solved:
https://answers.launchpad.net/ubuntu/+source/keep/+question/13277

HTH

Revision history for this message
Chinmay Nautiyal (mailtochin) said :
#2

Yah i've got the answer.
I'm running it first time with the user 'chinmay'.
The directory winxp has rights like - 'drwxrwx---' root plugdev winxp
i,e; rights are either for 'root' user or group 'plugdev'.
But 'chinmay' is in the group of 'plugdev', then why it is denying for doing that.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Are something related with the permission of the /media dir ...?

HTH

Revision history for this message
Chinmay Nautiyal (mailtochin) said :
#4

Yah. again u got the point.
My /media directory has permission only to 'root' user for writing.
So, for every time I need backup thru 'keep', Shall I've to do
with 'sudo' every time?

On Monday 08 Oct 2007 5:31:12 pm elart.it wrote:
> Your question #14727 on keep in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/keep/+question/14727
>
> Status: Open => Answered
>
> elart.it proposed the following answer:
> Are something related with the permission of the /media dir ...?
>
> HTH

Revision history for this message
Kris Marsh (moogman) said :
#5

Hi Chinmay,

The simplest way is to edit the file /etc/fstab as root. Alt+F2, type: gksudo gedit /etc/fstab

Find the line that contains /media/winxp and modify it. e.g. mine is:

/dev/sda1 /media/winxp ntfs-3g defaults,noatime,nls=utf8,gid=46 0 1

I would change to the following to allow any user to write:

/dev/sda1 /media/winxp ntfs-3g defaults,noatime,nls=utf8,umask=007,gid=46 0 1

Adding in "umask=007,". Feel free to post the contents of your /etc/fstab if you are unsure and we can help you out :-)

Kris

Can you help with this problem?

Provide an answer of your own, or ask Chinmay Nautiyal for more information if necessary.

To post a message you must log in.