LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-23-2013, 05:48 AM   #1
xtrick
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Rep: Reputation: Disabled
Unhappy i received the message: adding read ACL for uid 1000 to '/media/david' failed


I'm stumped what command must i use in ubuntu please.
I feel embarassed about this as i read wiki for commands but exited none the wiser!
I guess this is rather basic but i''m stumped!

David.

Last edited by xtrick; 02-24-2013 at 03:51 AM. Reason: to get this message all idid was click the icon of a partition listed in my home folder.
 
Old 02-23-2013, 10:28 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
What command(s) did you execute and where and how this error is generating? Please explain it little more, so we could help you.
 
Old 02-24-2013, 03:59 AM   #3
xtrick
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy no command given

in fact i to get this message i did not enter any command. I simply go to my home folder where all partitions are listed and click any one of them and u get this error.
i suppose there is a system error in ubuntu and it is issuing some command.
If i use open suse (also on the same harddisk) it also sees all of the partitions and there if i click on them it automatically mounts the partition and presents the contents.
I suppose ubuntu is trying to do the same but using the wrong command. I am unable to say what command , i haVE TRIED MYSELF SETFACL AND CHMOD BUT I'M NOT AN EXPERT OR KNOWLEDEABLE WITH THESE COMMANDS AND THEIR DESCRIPTION IN WIKI LEAVES ME COLD.
i READ SOMEWHERE THAT A SIMILAR PROBLEM WAS REPORTED IN SLACKWARE.
 
Old 02-24-2013, 07:49 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
What does it say?
Code:
~$ df -h
~$ cat /etc/fstab
 
Old 02-24-2013, 12:58 PM   #5
xtrick
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Arrow info requested

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 79G 2.9G 72G 4% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 757M 860K 756M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 152K 1.9G 1% /run/shm
none 100M 40K 100M 1% /run/user

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=e087b5ed-bcc7-416c-a1fa-4c80bb3a1082 / ext2 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=76e9ae0e-167d-46a6-ae43-a982d9e7c301 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

----hoping this throws some light on it!
 
Old 03-06-2013, 08:49 AM   #6
xtrick
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
this request is still not answered - i am desperate to resolve it
please help

Dave.
 
Old 03-06-2013, 09:14 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Try:
Code:
~$ mkdir /media/david
~$ chown david:david /media/david
~$ chmod 750 /media/david

~$ mount -t <fs-type> /dev/<device> /media/david
Then connect your HD or device again and try to boot.
 
1 members found this post helpful.
Old 03-06-2013, 06:49 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
I think you need to check if acls are enabled on that partition eg
Code:
tune2fs -l /dev/sda1 | grep options
Amend /dev/sda1 to match your system
 
Old 03-07-2013, 01:07 AM   #9
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Rep: Reputation: Disabled
Are you trying to mount an external HDD to /media/david?
Can you post the output "sudo fdisk -l" command?
If External HDD is formatted using NTFS filesystem then you need ntfs-3g package to mount NTFS partitions. So check whether that package is installed or not using
Code:
sudo dpkg -l | grep ntfs-3g
If it is not installed, install it using below commands
Code:
sudo apt-get update
sudo apt-get install ntfs-3g
After installation you can mount that NTFS partition(which will be usually sdb* or sdc*) using below command
Code:
sudo mount /dev/sdb1 /media/david -o uid=1000,gid=1000,dmask=027,fmask=027
or
sudo mount -t ntfs-3g /dev/sdb1 /media/david -o uid=1000,gid=1000,dmask=027,fmask=027
dmask is the mask for directories and fmask is the mask for files.
Here you no need either extra ACLs or chmod/chown commands to give read/write permissions to uid=1000, From above command by default the user & group who is having uid & gid as 1000 will get read, write & execute and read & execute permissions respectively to /media/david folder including all sub folders and others won't be having any permission on /media/david.
You can change permissions according to your needs by calculating with umask i.e
Code:
7 7 7  ---> full permission for all
0 2 7  ---> umask of owner, group and others
-----
7 5 0  ---> real permissions of files/folders of owner, group and otheres.
| | |-->Other don't have any permissions.
| |-->Group having read and execute permissions.
|-->Owner having full(read/write/excecute) permissions.

4 = read
2 = write
1 = execute
---------
7 = rwx
---------
If you are just trying to give access to /media/david folder without mounting any external HDD, then you can do it using chmod/chown only but ACL would be fine which can set particular permission to particular user even that directory is not owned by either his name/group. Before running setfacl command make sure whether acl package is installed.
Code:
sudo dpkg -l | grep acl
You can install ACL using
Code:
sudo apt-get install acl
If ACL is not enabled for / then open /etc/fstab file and add acl to the end of the 4th field in the / partion line. Then your root partition line looks like below
Code:
UUID=e087b5ed-bcc7-416c-a1fa-4c80bb3a1082 / ext2 errors=remount-ro,acl 0 1
Now remount / using
Code:
mount -o remount /
Check whether now ACL is enabled for /.
Code:
mount | grep acl
Now you can run setfacl command
Code:
setfacl -m u:username:rwx /path
setfacl --help
For example
setfacl -R -m u:david:rwx /media/david

Last edited by mandyapenguin; 03-07-2013 at 03:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] whoami: unknown uid 1000 Lobinho Linux - Embedded & Single-board computer 2 01-31-2013 05:25 AM
Slackware 14: "Adding read ACL for uid 1000, operation not permitted." (CONFIG_TMPFS_POSIX_ACL) urza Slackware 3 10-01-2012 09:49 AM
[SOLVED] Perl: Find highest UID between 1000 and 2000 Angel2953 Programming 8 03-04-2012 10:00 AM
ldm_validate_partition_table (): Disk Read Failed message. roadster3043 Linux - Newbie 6 01-24-2004 10:54 PM
READ CAPACITY FAILED message odin123 Linux - Hardware 0 11-23-2002 12:59 AM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration