Tag Info

Hot answers tagged

11

If you want to limit access to users outside of your group or any other user, the question is a duplicate of Restrict acces to my home folder from another standard user account Otherwise, if you want to restrict access to just one user, call it enemyuser, use ACL: cd ~ setfacl -m u:enemyuser:000 . ...and just enemyuser will have the access to you home ...


8

NOTE: The question at the time addressed Email transfer (per comments from the OP on the question). This answer is written to address that question as it was, in that email is the transfer method available here. When using email to transfer files between systems, you can't 'preserve' all the file permissions as you want them to be when just sending the ...


4

You have to add the path to the sudo path. Run the command sudo visudo you will see a line like this: Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$ Now add the path of your command here and this should work. For example: $ sudo storm sudo: storm: command not found Now add the path as above: $ sudo visudo ...


4

You can "remove" from yourself the temptation of modifying Windows files by hiding them via .hidden files. Just place a file with name .hidden in the directory where the files you want to protect are located and put a file or directory name in each line. These files will be hidden from file managers (except dolphin I think) and the terminal (unless you put ...


2

I don't know what initially sets the permissions of the character devices /dev/input/event* but, I do know you can change those permissions with a software which is on your system by default as part of coreutils. see the command man mknod. The permissions of my event devices are: crw-rw---- 1 root input 13, 64 Apr 14 06:39 /dev/input/event0 here are ...


2

sudo chown www-data:www-data * -R The above command has changed ownership of all directories, sub-directories and files of your home directory from default to www-data user and www-data group sudo usermod -a -G www-data $username This command has added a new user www-data and new group www-data. You can revert changes back to normal by this command ...


2

You need to run this command as the root user, or at least use sudo to grant you super user permissions. Try: sudo apt-get update Hope that helps!


1

Edit this file as root: /etc/pam.d/su Search and uncomment this line in the file removing #: # session required pam_limits.so Reboot and test.


1

Short answer: usermod The usermod command modifies the system account files to reflect the changes that are specified on the command line. as outlined in man usermod chown changes ownership as outlined in man chown Long answer: chown -R operates recursively so sudo chown -R www-data:www-data * changes ownership of every file from the current directory ...


1

I solved the same problem by adding the UID info as an admin user from my Linux machine, so my /etc/fstab line now looks like this: //192.168.1.X/Multimedia /media/dungeonmultimedia cifs uid=[linuxadminuser],username=[nasadminuser],password=[nasadminpass] 0 0


1

I would suggest a slightly different approach. Create a separate partition in Windows (e.g. drive D:) and store all of your data files (e.g. documents, pictures, etc.) in that partition. Mount the data partition in Ubuntu but do not mount the main Windows partition. Now, all your data files will be accessible to both operating systems, but Ubuntu won't be ...



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