FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Wed May 12, 2021 01:56



Post new topic Reply to topic  [ 3 posts ] 
Permission denied errors on ubuntu 
Author Message

Joined: Wed May 01, 2013 02:10
Posts: 2
Post Permission denied errors on ubuntu
Hi, I have come across this issue while trying to use HG. see the bug report I filed with mercurial here: http://bz.selenic.com/show_bug.cgi?id=3914

here is my mount output:
Code:
sam@ubuntu:~$ mount
/dev/loop0 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
/dev/sda8 on /host type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda5 on /media/sam/Docs type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfsd-fuse on /run/user/sam/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=sam)


My ntfs-3g version:

Code:
ntfs-3g 2013.1.13 external FUSE 29


my command that fails is 'hg init'
and i get this error:
Code:
abort: Operation not permitted: /media/sam/Docs/..,/yr4proj/.hg/requires


Wed May 01, 2013 13:27
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: Permission denied errors on ubuntu
Hi,

Quote:
I am trying to create an hg repository inside this directory:
drwxrwxrwx 1 root root 4096 Apr 28 19:51 yr4proj
hg init generates the following error:
abort: Operation not permitted: /media/sam/Docs/..,/yr4proj/.hg/requires
Using sudo, however, allows the repository to successfully created.

Where are you trying to create the new directory ? What are the ownership and permissions on .hg and on requires ?

Mercurial may have its own permissions policy and may want to check the created directory owner and/or permissions. Try mounting with option "permissions" and assign normal ownership and permissions to the needed directories and files.

Regards

Jean-Pierre


Wed May 01, 2013 21:37
Profile

Joined: Wed May 01, 2013 02:10
Posts: 2
Post Re: Permission denied errors on ubuntu
jpa wrote:
Hi,

Quote:
I am trying to create an hg repository inside this directory:
drwxrwxrwx 1 root root 4096 Apr 28 19:51 yr4proj
hg init generates the following error:
abort: Operation not permitted: /media/sam/Docs/..,/yr4proj/.hg/requires
Using sudo, however, allows the repository to successfully created.

Where are you trying to create the new directory ? What are the ownership and permissions on .hg and on requires ?

Mercurial may have its own permissions policy and may want to check the created directory owner and/or permissions. Try mounting with option "permissions" and assign normal ownership and permissions to the needed directories and files.

Regards

Jean-Pierre


Hi Jean-Pierre,

Apologies for my slow reply, I did not receive a notification for this thread.

Here is a break-down of the bug from the mercurial guys' point of view: http://bz.selenic.com/show_bug.cgi?id=3914

I eventually got hg working by mounting using the uid and gid options in fstab. I think they were suggesting it should have just worked out of the box according to the NTFS-3g manpage.

Best,

Sam


Sun May 19, 2013 00:56
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.