Hot answers tagged

20

I have one word for this 'bug': fun. :) I saw exactly the same error message today, and the solution is... sudo mkdir /media/$USER sudo chown $USER:$USER /media/$USER (thank jasmines for the tipp!) I know, fun, but that was the solution for me! Ubuntu wants to use a non-existent directory for the mount target, and doesn't create it before attempting the ...


12

What you want is called ACL - Access Control Lists. Access Control List (ACL) provides an additional, more flexible permission mechanism for file systems. It is designed to assist with UNIX file permissions. ACL allows you to give permissions for any user or group to any disc resource. acl package should be already installed, to check it run: dpkg -...


12

Use zfs set acltype=posixacl tank/datatank


10

Removing a file requires write permission in its parent directory - so may fail if either ~/Desktop/ has has incorrect permission bits ~/Desktop/ has correct permissions but has become owned by someone else such as root Check and adjust as necessary.


5

SAMBA/UMASK Running Ubuntu 14.04, samba Version 4.1.6-Ubuntu. I was previously running Fedora 16/samba3 and everything was OK. With Ubuntu/samba4, I could not get Samba to set group write bit on directories. smb.conf parameters (for testing) included: create mask = 700 # The file AND mask force create mode = 775 # The file OR mask ...


5

Just follow these instructions: sudo blkid sudo -H gedit /etc/fstab and fill information= in the appropriate pattern. For example, mine was: UUID=445F-4D4E /home/str007/kortele vfat errors=remount-ro 0 1 My file now looks like this # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; ...


4

Finally figured this one out. You need to modify the /etc/samba/smb.conf file. For my Music share, I added the following options: create mask = 664 force create mode = 664 security mask = 664 force security mode = 664 directory mask = 2775 force directory mode = 2775 directory security mask = 2775 force directory security mode = 2775 I'm not sure which ...


4

I do not think it is possible to do what you are asking. You can use mount options to map users and set permissions, but I do not think you can changes the Windows parameters. See the NTFS-3g documentation for details: http://www.tuxera.com/community/ntfs-3g-manual/ http://www.tuxera.com/community/ntfs-3g-advanced/ownership-and-permissions/#options ...


4

ext file systems support an acl or noacl mount option to explicitly turn ACL support on or off. The default depends on how your file system was configured. Here would be an example line with noacl on an ext4 partition for /etc/fstab: # /data was on /dev/sda5 during installation UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /data ext4 defaults,noacl ...


3

Out of these SO thread I try: apt-cache policy acl. It returns: acl: Installed: (none) Candidate: 2.2.52-3 Version table: 2.2.52-3 500 500 https://mirrors.gandi.net/ubuntu xenial/main amd64 Packages So I guess it means that is alright acl is installed. The result of the command showed that the version of acl installed on your computer is none Which ...


3

You are asking that when ever you create a file or directory those will automatically assign default permissions set by you. umask 000 #put it in .bashrc file umask is inverse of chmod. chmod is used to give permissions. umask is used to revoke permissions. umask 000 means your are giving future files 666 and directories 777 permissions. by default 022 ...


3

I will partially answer my own question. I installed Lubuntu for my children's use on an older PC. I decided to see if Lubuntu's version of rsync would function properly. The version of rsync on Lubuntu 16.04.1LTS is 3.1.1 protocol version 31. rsync -aAX /source/filename /destination/ rsync -aAX /source/filename /destination/filename rsync -aAX /source/...


3

ACL can do it successfully because it makes files to be shared for multiple users based on username rather than userid number. It's converted to userid number inside of file's attribute. Can I map container-www-data to have host-oli privs on the filesystem? Would this grant them access to the host? oli is not an unprivaliged account. It can do real damage. ...


3

Linux has something known as Access Control List (ACL). This is a way to extend standard unix permissions and fine tune them. One of the advantages is that it does have inheritance. What could be done, has been referenced by a related post on serverfault, and in your particular case: sudo setfacl -Rdm g:somegroup:rwx /path/to/parent As for forcing the ...


3

You and your colleague are talking about two different bits, so it's understandable that you don't agree on what they do. The sticky bit, the setuid bit and the setgid bit are three distinct bits in a file's (or directory's) mode. See e.g. the chmod(2) man page. You're both right, your reference for the sticky bit is accurate, your colleagues reference for ...


3

You can use find to run different commands on regular files and directories by filtering them with the -type option. This runs recursively on everything inside ./Movies: # all directories become 755 (rwx r-x r-x): find ./Movies -type d -exec chmod 755 '{}' \; # all files become 644 (rw- r-- r--): find ./Movies -type f -exec chmod 644 '{}' \;


2

This is a nice tutorial for adding users to a group If you give that groups rights to the folder than that should solve your first problem and your fourth problem. I would solve the rights for stating and stopping Apache and Tomcat by giving limited sudo rights for specific commands. This can be done using sudo visudo to edit the /etc/sudoers file. A nice ...


2

This is definitely possible. First, change /db-data's group to app-data: sudo chgrp -R app-data /db-data Now set up the permissions: sudo chmod -R g+rwx /db-data sudo chmod -R g-w /db-data/archived-data/* sudo find /db-data/archived-data -type d -exec 'chmod' 'g+rwx' '{}' ';' sudo chmod -R g+rwx /db-data gives app-data full permissions to /db-data and ...


2

If ACL is present, ls -l signals that with a + at the end of the permission column. Additionally it doesn't show the group permissions but the mask instead, see this example: $ getfacl file user::rw- user:user:--- group::--- group:group:--- mask::rwx other::--- $ ls -l file -rw-rwx---+ 1 user group 0 2010-01-01 00:00 file Source: https://wiki.ubuntuusers....


2

Create a user and its home (creates a group as well): adduser Both Add users to the new group: usermod -a -G Both usera usermod -a -G Both userb Set the sticky bit: chmod g+s /home/Both Allow group to write: chmod g+w /home/Both Set the access control list: setfacl -d -m g::rwx /home/Both Obviously creating a new user is optional but it does make ...


1

Instead of chown 755 /home/user1/htdocs/ You have to run chmod 755 /home/user1/htdocs/


1

From this Ubuntu Forums thread Edited /etc/netatalk/AppleVolumes.default so it reads: # The line below sets some DEFAULT, starting with Netatalk 2.1. :DEFAULT: options:upriv,usedots # By default all users have access to their home directories. ~/ "Home Directory" /srv/files/Agentur "Agentur" allow:@mitarbeiter dperm:0770 fperm:0660 umask:...


1

I added the following source line to apt configuration source list: deb http://cz.archive.ubuntu.com/ubuntu trusty main then i can install acl normally.


1

I don't know whether this is "simple" enough for you, but it can be done using tools already included in the system. This can be easily accomplished using the chmod and chown commands. With chown you can set the ownership of files and directories and with chmod you can set permissions. As you may want multiple users to access a single directory, you'd have ...


1

With no other answer I am adding my answer since the issue has been somewhat resolved. Due to a three year old (!) cp/mv in coreutils don't respect the default ACL of parent directories bug the default ACL permission are non-functional and the reason acl's did not work for me.


1

In Ubuntu Desktop 14.04 the acl option in /etc/fstab and mount command is superfluous, even when the option defaults is not specified. Instead, the noacl option disables acl support


1

I've written an answer, but this seems like a "homework" question. I don't consider that bad, but I do suggest providing details about what you have figured out so far when asking such questions. This can both get you most useful answers, and assist you in combining pedagogical benefits intended by the instructor with those afforded by Internet ...


Only top voted, non community-wiki answers of a minimum length are eligible