New answers tagged

1 vote

Can you login to root as a normal user?

Try this #set root password sudo passwd root sudo vim /etc/pam.d/gdm-autologin ##Annotate this line #auth requied pam_succeed_if.so user != root quiet success sudo vim /etc/pam.d/gdm-password ##...
3 votes

permission will not change on sd card file

The FAT32 you're using on your SD-card does not support changing unix file permissions. All files will have exactly one permissions mask, which can be set when mounting FAT32 with umask= mount option. ...
  • 3,463
0 votes

landscape-sysinfo.cache: Permission denied when I start Ubuntu 22.04 in WSL

This answer already does a fine job of getting rid of the error message. As a matter of taste, I prefer to run the following commands : sudo apt remove -y landscape-common # Removes the package sudo ...
  • 109
0 votes

Permission denied: '/dev/ttyUSB0'

Just a hint that might be the cause of the problem (worth a shot). Check your permissions: sudo chmod a+rw /dev/ttyUSB0 WARNING: This solution is only for testing purposes! For production usages you ...
0 votes

how to open a folder in terminal in nautilus (with root privilege) ubuntu 22.04

You do not want to do this. You want to be careful running your file manager as root, and only do this for these specific tasks that require root access. You certainly are not needing root permissions ...
  • 74.4k
0 votes

adduser fails with error code 1 and then error code 6

you can try creating the user with no group like below: sudo adduser <username> --system the user will be created with group 'nobody'. Then if you would like to add the user you created to a ...
  • 1
1 vote

How to change a folder's permissions and owners?

Use chown command for the ownership, and add -hR flag for all its sub-files/folders. For example, make animals and all files/folders under that folder owned by user and group user via command: sudo ...
2 votes
Accepted

How to change a folder's permissions and owners?

sudo chown -v user:user /path_to/animals changes both the folder owner and the group from root:root to user:user. Now that root is no longer the owner, sudo is not needed anymore. chmod -v 755 /...
  • 5,589
0 votes
Accepted

Access Rights Problem: USB Device Read as User

tl;dr: Add $USER to input group sudo usermod -a -G input $USER and everything works like a charm. Long Version: Thank you for reading. I will not edit my question, so anybody can see my earlier ...
0 votes

Fisrt user deleted, how to define new default admin?

since there was no answer to this question I did some research and figured out how this works. If a GUI application requires "Privileged Access" it talks with polkit Plokit stores the ...
  • 1
0 votes

tmp directory in $HOME with behavior like /tmp

I put a script named /etc/profile.d/tmp-user.sh which is if [ "$EUID" -ne 0 ]; then if [[ ! ( -d /home/$USER/tmp ) ]]; then if [[ ! ( -d /tmp/tmp_$USER ) ]]; then ...
0 votes

Permission denied, 20.04 to 20.04 unable to share

I had to do the following. right click the drive in question. go to properties go to security add 'Everyone' to the list of 'Group or names' and give it full control apply, ok, ok, For good measure ...
  • 31
1 vote

I can't move, delete & rename any file from my HDD

Access rights, a very short "primer": Related commands, su, sudo, usermod, chmod, chown and possibly more... check manpages of these... When the disk is mounted... (sudo mount ... to do that,...
  • 4,289
0 votes

Bluemail notification sound - Permissions under snap folder

Snaps are read-only mounts ("loop mounts" of sandboxed static compiled code and files). Even as root you can't change the contents of any files under the snap in its mount points. If you ...
  • 69.5k
0 votes

How can I give full permission to folder and subfolder

I gave all permissions to all users by following command $chmod -R a+rwx /path/.... And gave full permissions to a user $sudo chown -R username:grouname /folder path
0 votes

landscape-sysinfo.cache: Permission denied when I start Ubuntu 22.04 in WSL

Fixed with: sudo usermod -a -G landscape $USER This command adds your user to the landscape group. Then log out and log back in.
1 vote

Windows like partion in Ubntu22.04

That is default behaviour You do a sudo chown $USER:$USER /personal ($USER will magically be changed to the user you used to issue this command; the user needs to be your admin user; if you want ...
  • 285k
0 votes

Cannot Run Rscript from PHP but it runs perfect from terminal

So I know this is and old post. But I just ran into the same issue and unfortunately the solution above didn't work for me. (sorry I'm not very familiar with Linux so excuse the lack of correct ...
  • 1
2 votes
Accepted

Where do I install portable apps?

Google recommends /opt but it is owned by root and I cannot write to it as normal user. If I create a subdirectory there as root and copy the files as root, the apps runs correctly only as root. When ...
  • 285k
0 votes

nvcc permission denied when building xgboost with GPU support, ubuntu 18.04

The CMAKE variable CMAKE_CUDA_COMPILER is set incorrectly to the directory (/usr/local/cuda/bin) instead of to the full path to the compiler executable (/usr/local/cuda/bin/nvcc).
0 votes

Can't write to mounted ext4 hard drive in Ubuntu 18.04

I wanted to create a universal USB drive that can be accessed by all OS. I use FreeBSD (Unix) as my primary desktop. So it is vital that I create ext4 file systems within my desktop (FreeBSD). I have ...
  • 59
0 votes

Connecting to FritzBox NAS using cifs

maybe he can help you: //fritz.box/fritz.nas/Western_Digital /mnt/fritz cifs auto,vers=3.0,noserverino,uid=1000,gid=1000,x-systemd.automount,x-systemd.requires=network-online.target,username=n{your ...
1 vote
Accepted

user created with admin rights but getting permission denied error

Yes, your /usr/bin/gawk has invalid permissions. Do: sudo chmod 755 /usr/bin/gawk Then it will run.
0 votes

systemsettings and related printer issues in 22.04

I have just experienced this in kubuntu 22.04.01. I could print from applications but could not print a test page from System Settings - the print queue item showed "Unable to open print file: ...
  • 2,524
0 votes

How to grant write permissions in Samba?

If writeable, read only, write list are correctly configured, there might be a ownership problem of the directory for samba sharing. ex) [sambashare] comment = Samba on Ubuntu path = /mnt/storage read ...
  • 1
0 votes

Ubuntu 22.04 don't show popup with request of root password

I was found a reason with a workaround, but can't find a permanent solution. Anny suggestion please?! Problem start after add by me file /etc/polkit-1/localauthority.conf.d/90-silence-steam.conf whose ...
0 votes

Correct ownership and permissions of /media folder and folders of external drives

Ok, I solved it. The permissions for "media" needed to be drwxr-xr-x, which I achieved with: chmod 750 media Now everything works alright again. Thanks @Rinzwind, you were right that the ...
  • 1
0 votes

Slack cannot open files on external drive (in /mnt and /media)

I too had faced the same issue. This is because the app did not have permission to read/write files on removable storage devices. To resolve this: Go to ubuntu setting. Go to Application. Search for ...
  • 113
0 votes

VirtualBox Ubuntu 22.04: how to add sudo rights?

Today i've installed the same and i had the same issue. I resolved this by a new installation without remarking unattended installation. In that case you have something more to do, but your user has ...
  • 11
1 vote
Accepted

VirtualBox Ubuntu 22.04: how to add sudo rights?

All you need is to add your user to the sudo group. There is no reason to modify the /etc/sudoers file. su - usermod -a -G sudo vboxuser Then log out and back in for changes to take effect.
  • 37.5k
1 vote

VirtualBox Ubuntu 22.04: how to add sudo rights?

A colleague solved my problem: use su - to become root, then nano /etc/sudoers. In order to add permissions to your user (here vboxuser), add the line vboxuser ALL=(ALL:ALL) ALL under root ALL=(ALL:...
  • 35
-1 votes

Copy a folder in Ubuntu 14.04

move it with terminal as admin eg sudo mv campfund /location/
2 votes
Accepted

Cannot delete directories as sudo: Permission Denied

I figured it out. It's because it's directories I'm trying to delete. For anybody else who gets this problem, the command is rm -rf 'directory name' That removes the directory and all subdirectories ...
  • 185
12 votes

Cannot delete directories as sudo: Permission Denied

Besides file permissions there are (at least) 5 more things that can influence your ability to delete things: Extended acl's (man getfacl) File attributes (man chattr) Fileystem mount options (man ...
0 votes

S3fs can't access bucket permission denied

I was getting error on opening files. I fixed it by clearing my /tmp/cache folder.
0 votes

pip3 installs to python3.10 despite the later not being default Python version and shows permission denied

The main problem here was, that I had somehow put a path starting from /Users in the config.h file whose job was to set the path pointing towards a location where newly installed packages would go. I ...
0 votes

how to get root priviliges for workstation

In general, root privileges are granted to you by the administrator of the system, the person(s) that have set up the workstation. In particular, if you installed the system, you already will have ...
  • 74.4k
1 vote

Access root user directories from Windows under WSL?

Orthogonal answer (but much simpler than my other answer): Use a Linux application that can preview the root-owned files instead of using a Windows application. Downside -- There's just no ...
  • 9,617
0 votes

Access root user directories from Windows under WSL?

To summarize the root issue 1, your Ubuntu distribution is accessible via a 9P network share in Windows. The Windows 9P client, which automatically creates \\wsl$\Ubuntu2 (Windows 10) or \\wsl....
  • 9,617
0 votes

awk command not working for rbash user

awk is not in /bin, it's in /usr/bin. So the command you need is sudo ln -fs /usr/bin/awk /home/vega/bin The -f flag will force the link to be replaced, you may need that given that you already have ...
-1 votes

How to change permissions on external media

With me this worked: sudo caja. After that I was able to change the permissions.

Top 50 recent answers are included