New answers tagged

0

As suggested in the comments, this solution might help. I managed by unplugging the hard drive and putting it into another machine and deleting the folder there without any issues.


0

Using 'at' to schedule a shutdown at next 11:00 as root (You might have to install 'at' first: sudo apt install at) $ sudo at 11:00 [sudo] Password for <user>: at> shutdown now at> Ctrl-d To see root's at-queue: sudo atq See man at for other options and parameters. Cron, as I mentioned too, executes a command at a given time, every time that ...


0

Now I understand my mistake. I thought I need to type "sudo make install" and in addition to type make install. so sudo make install was enough


0

Do you have sudo permissions on that machine? The simplest test is sudo cat /etc/sudoers If that gives you a "permission denied" error, you don't. In that case, you need to build the software with a prefix; in your case (since you will also not have permissions for /usr/local) to a subdirectory of your home directory and invoke it from there. See ...


0

This sounds like VirtualBox bug 20320 https://www.virtualbox.org/ticket/20320 which is supposed to be fixed in VBox version 6.1.22. Upgrade both host and the Guest Additions, since it's a shared folders problem.


0

Either transmission-cli or transmission-common was causing an issue with a config. Previously purged transmission-daemon but this did not resolve the issue. Purging all 3 then reinstalling resolved.


1

Please do not invent the wheel. The Dropbear is packaged for ages on Debian and Ubuntu. To install it open terminal and type: sudo apt-add-repository universe sudo apt-get install dropbear To modify the source - enable Source Code in Software & Updates (software-properties-gtk), install build dependencies, get the source, modify it, compile and install ...


0

Permissions, permissions! Sometimes the error message does not always point to the actual cause of the problem. Yes the ownership and permissions on the files and directories need to be correct (viz owned by clamav and writeable by the user clamav) but if you happen to be running apparmor you must also ensure that the apparmor profile usr.bin.freshclam in /...


0

I couldn't easily take my problematic NTFS-formatted external drive back to the Windows system that had apparently failed to dismount it safely (causing Mint to insist on mounting it "read-only"). But the easy answer for me was to run the Mint "Disks" utility and select "Repair filesystem"...


0

Right seems I’m an idiot, I though all users were able to access the SSH when adding AllowUsers maximking it worked…


0

I managed to fix this by updating Ubuntu from 20.04 to 20.1. Took couple of restarts and then somehow solaar worked.


0

It could mean that your directory doesn't have the required permissions. In my case I could resolve the problem by executing, sudo chmod -R 777 /path/to/directory


2

After trying to remount the partition in the recommended location from the comments I came across a new set of errors which led me to the eventual solution. I had to run this series of commands sudo ntfsfix /dev/sda1 sudo umount /dev/sda1 sudo mount -o rw /dev/sda1 /home/steve/data Now I have full r+w access again. The key here was the sudo ntfsfix /dev/...


2

The stat command is made for this ex.: stat -c '%A %n' *.txt or stat --printf '%A\t%n\n' *.txt where the format specifiers have the following meanings %A access rights in human readable form %n file name


1

You can get most of the way there by using ls itself: ls -lGg --time-style=+ will print only the access modes, link count, size and name. Processing ls output is tricky because filenames can contain pretty much anything, so you can't assume anything about them when processing. It would be better to use find instead to print exactly the information needed ...


1

You could pipe it to gawk and output the fields you want, something like this or similar: ls -l | gawk '{print $1 " " $2 " " $9}'


0

wps is available from snapcraft, you can install it through: sudo snap install wps-2019-snap


1

According to the search on Repology and then in AUR - MS has deb-package of the Teams application. So you have to remove Snap based version and then install deb-version with: cd ~/Downloads wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.4.00.7556_amd64.deb sudo apt-get install ./teams_1.4.00.7556_amd64.deb


1

I found the issue. I had no SMB User created for the user Veronika. So had to do following: sudo smbpasswd -a veronika sudo systemctl restart smbd.service Hope helps somebody else.


0

User bob already cannot write outside of /home/bob, so it is necessary to make /home/bob not writeable by user bob: $ sudo chown -R root:root /home/bob If bob is logging in using ssh with public key, then bob still needs keys readable by bob: $ sudo chmod 400 /home/bob/.ssh/authorized_keys $ sudo chown bob /home/bob/.ssh/authorized_keys And make sure that /...


0

i think that you install from snap... so, just type that in terminal snap connect bitcoin-core:removable-media


0

Add this config in this virtual-host <Directory "/home/x/Dropbox/Sites"> Require all granted </Directory> so final config will be: <VirtualHost *:80> ServerName localhost ServerAdmin webmaster@localhost DocumentRoot /home/x/Dropbox/Sites <Directory "/home/x/Dropbox/Sites"> Require all ...


0

Files can only have one owner. You can have the directory with 775 permissions and files with 664. From there you can either make www-data the group and your user the owner. Or you can make the www-data the owner and your user as the group.


10

I would start by asking a different question: What privileges do the other users need from sudo? If they only need to be able to do specific things(like restarting the server) and access specific folders, then you can configure sudo to only give them permission to do those specific things as a root. Your file will be safe, and in fact the entire system will ...


21

The only way to do this is to deny access to sudo for those other users. If you have multiple people with sudo aka admin privileges you can't restrict access to sudo/root and are better off NOT keeping this file on the server. Especially if you don't trust everyone with administrative privileges on the system from not snooping your data. Permissions to run ...


0

If you don't want to use sudo privileges, you can install this package inside a conda environment. Once conda is installed (no need sudo, and you can install python>=3, even if you want to use python 2): conda create -n myenv 'python<3' conda activate myenv # you will need to do this each time you want to use your package cd ~/featherduster python ...


0

From my answer to similar question on the Linux stachkexchange: link For me the option with visodo required additional steps: Add yourself to the sudousers: Login as root via su -, open sudo editor by visudo and add next lines: %yourusername% ALL=NOPASSWD: /usr/bin/apt-get install %yourusername% ALL=NOPASSWD: /var/lib/dpkg/lock-frontend Exit session(root ...


0

It is permission issue. To fix it you have run installation script with root privileges. Open terminal and type: cd ~/featherduster sudo python2 setup.py install


1

SSH is picky about key permissions. Private keys shouldn't be readable by anybody except the user, and that includes the host keys for sshd, which bailed when it couldn't find a sufficiently secure host key. An example log from my system, after doing sudo chmod o+r /etc/ssh/*key: Apr 23 15:59:31 muru sshd[21516]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...


1

You changed permissions recursively for everything under /etc. The majority of your software keeps essential files under this directory. In many cases, changing the permissions of files needed by your software can cause the software not to work as intended. You probably broke a lot more than ssh. You will probably need to reinstall the operating system ...


1

You may download the package directly with apt, and extract the files with dpkg, but with most bigger programs, you have to manually adjust tons of config files to match the different environment. apt download <apt package name> dpkg -x <package file name> <destination directory> For example: apt download x11-apps dpkg -x x11-apps_7.7+...


0

What is missing is how you set up this share on the server. Adding the output of the following commands would tell us that: testparm -s net usershare info --long I suspect the problem is the path to your mount point: /media/user/USB-DRIVE The only samba client user that will gain access to that share is user so you either have to pass that users real ...


0

thanks to @user535733 's comment, I got the root cause: the software I installed is a snap version , see the picture below solution: move my project file ( or sqlite file ) to the origin folder ( e.g. user home folder ) and continue to use the snap version. uninstall the snap version from "software center", and then re-install the normal version....


0

The truly problem was a dpkg dependency problem which we solved with sudo apt-get --reinstall gdm3 and sudo systemctl enable gdm3 Try with 'ctrl + alt + F5(or any other of the 12 keys)' till you get some login screen, there you log you in and give us your output of sudo systemctl list-units --failed If you are in tty you can try the following: sudo systemctl ...


0

Close the WSL terminal, open Windows command prompt and make the default WSL user as root using the below command ubuntu2004 config --default-user root Open a new WSL terminal, you will be logged in as root. Type nano /etc/sudoers Now you can edit the sudoers file. Cheers! Extra: ubuntu1804 config --default-user root for Ubuntu 18.04 and above or ubuntu ...


0

If you check permission of /bin/. Then, you will see that it is accessible for root user. So, there's three way to save file to bin directory. Make the /bin/repo permission to public sudo chmod 777 /bin/repo #Then, you can do as you did You can run curl command with sudo command sudo curl http://commondatastorage.googleapis.com/git-repo-downloads/repo >...


0

I'd strongly suggest trying to fix your system first before trying to upgrade. Boot from the LiveCD and mount your partitions below, say, /mnt/ubuntu1804. chown -R o-rwx /mnt/ubuntu1804/etc/sudoers* should stop sudo from complaining, but of course, you need to fix a lot of additional files. In a first step, make a new backup now (as already suggested in the ...


0

Generic permissions for website files: chown apache:apache -R * # change to the user and owner set for apache find . -type d -exec chmod 755 {} \; # directory permissions: rwxr-xr-x find . -type f -exec chmod 644 {} \; # file permissions: rw-r--r-- The WP hardening page states: All files should be owned by your user account, and should be writable by you....


2

The simplest thing would be to ensure both default gids exist on both machines, and your uid is in both groups. The simplest thing is to have one group in both machine with the same gid and use something like chmod 2770 YOUR_DRIVE Where 2 is a setgid, that way any file created will inherit group permissions and you will be able to create or modify files on ...


Top 50 recent answers are included