Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

How can I access my root directory to save file in ```/etc/environment/``` [duplicate]

while setting up java-jkd-22, I write the code sudo gedit /etc/environment/ in terminal, after authentication, I am getting this message Authorization required, but no authorization protocol specified ...
BHANU PRATAP SUTHAR's user avatar
3 votes
1 answer
143 views

How to use setfacl for adding the same permission

I found the setfacl from this link: https://stackoverflow.com/questions/39397548/how-to-give-non-root-user-in-docker-container-access-to-a-volume-mounted-on-the sudo setfacl -m u:$(id -u):rwx -R /some/...
stackbiz's user avatar
  • 393
0 votes
1 answer
71 views

Installed thonny using sudo but can't run from desktop

Ubuntu 22.04.4 LTS kubuntu 22.04 I downloaded the thonny bash script from thonny git. from terminal i typed sudo bash thonny-4.1.4.bash it installed fine. If I run in terminal sudo /root/apps/thonny/...
kadam's user avatar
  • 3
0 votes
0 answers
35 views

sudo su gets hung in Ubuntu 20.04

When trying to run the sudo su command it gets hung. If I press Ctrl zz then after 2 minutes it goes to sudo. When I checked the permissions, it is OK and there is no output from it.
Hiral Tanna's user avatar
0 votes
0 answers
73 views

How do I call an executable as root without the need of using sudo?

I've created an app that also uses TPM for signing/encryption/decryption (with the tss2-fapi library)... But I am a newbie when it comes to Linux (Ubuntu) permissions. Now, when I am running the app I ...
Croksie's user avatar
1 vote
1 answer
220 views

Cannot run bash script Cisco Anyconnect. "Sorry, you need user privileges to run this script." When executing as root

For work i need to install Cisco Anyconnect and i can't get it to install due to a rights issue. I have everything set up, i think correctly. I'm following this instruction. After step 8 (executing ...
CJDG's user avatar
  • 13
1 vote
0 answers
114 views

nautilus: error while loading shared libraries: libtracker-data.so: cannot open shared object file: no such file or directory

First, I cannot open my file and recycle bin icon, when I click on it, it just loads and then two seconds later there's no response. I tried to run nautilus in the terminal. It then prompts with the ...
lqqq's user avatar
  • 11
0 votes
0 answers
85 views

Setting Default 666 Permissions for Specific File Types (.xlms, .png .pdf...) in Linux Using ColdFusion

I am working on a project using ColdFusion on a Linux system, and I need to programmatically set default permissions (666) for files with specific extensions (.pdf, .xlsx, .png, .html, .zip). Despite ...
Atul Verma's user avatar
0 votes
1 answer
78 views

Fix changing all files permissions to default user in ubuntu [duplicate]

I accidentally ran the command sudo chown -R ubuntu:ubuntu . while i was in the root directory. Now every single files user and group has changed to the Ubuntu user and group. And none of the ...
Tharindu Perera's user avatar
2 votes
1 answer
986 views

How to change permissions (chmod)?

I have created a folder not in /home but on other volume which is free (eventually I'd like to share the folder via Samba). I have found the path: /media/xduser/kingstone I did: cd /media/xduser/...
ZedZip's user avatar
  • 207
-1 votes
1 answer
82 views

Common admin commands?

I usually work with administrator access privileges on my Ubuntu workstations. On a new machine, I've recently been offered only a normal user account; and asked to provide a list of admin-level ...
user643722's user avatar
1 vote
2 answers
906 views

How to grant full access to any new folders/files/subfolders created in a specific folder?

I have granted full access to a folder as follows: sudo chmod 777 -R /media/sharedfolder However when a new subfolder is created by User A, that subfolder is not accessible by other users. How can I ...
Ian M's user avatar
  • 173
-3 votes
1 answer
81 views

Want to execute a script irrespective of the directory where this script is present or html file is present

Actually my script is present under the path /home/user/bin/script.sh and when I run the above script named as script.sh, the script will show html file in Firefox web page. But the problem here is ...
Ashwini Gajarla's user avatar
-1 votes
1 answer
75 views

no file in the directory

i just started using unix for my university (i have 0 prior knowledge on programming so bear with me if isay something stupid) and it wont find my file this is what i did so far: nano (filename).sh ...
Ozzy's user avatar
  • 1
0 votes
0 answers
353 views

Visual studio code cannot edit files on samba shared folder

I got some problems with my samba service, when I mount shared folder from command line on Ubuntu using this: sudo mount -t cifs -o user=$USER,uid=ubuntu-user,gid=ubuntu-user //ip-address/samba-folder ...
Tommaso Ascani's user avatar
1 vote
0 answers
352 views

starship cannot access/edit starship.toml

Whenever I try to import a starship.toml file by typing starship preset tokyo-night -o ~/.config/starship.toml I get the following error: Error writing preset to file: Permission denied (os error 13) ...
maze's user avatar
  • 11
0 votes
0 answers
48 views

Howto change the permission of a directory to root?

Howto change the permission of a directory to root: /mnt/sda9? I tried it with gksudo, but it says "you're not propriertary." The following commands... gksudo nautilus /mnt sudo chown user:...
Rodrigo Enrique Esteves Antelo's user avatar
17 votes
7 answers
6k views

Can we prevent a command from being executed for root in Linux?

There is this script that is difficult to read and debug. Somewhere in it, it has commands like this: sudo chmod -R 777 /$some_var/$another_var In other words, it creates a path dynamically, and then ...
Saeed Neamati's user avatar
0 votes
0 answers
187 views

sudoers.d file not working for a non-sudo user using three commands without password

I want username steamy, a non-sudo user, to execute three commands (i.e., systemctl start|stop|restart factorio) without entering a password. I am using sudoers.d file called factorio: $ sudo ls -l /...
ptay's user avatar
  • 101
1 vote
1 answer
217 views

How to make the current working directory be highlighted in color? [duplicate]

my ns-3 is installed inside the source folder i.e., home/my_username/source/ns-3.39, when I try to ls inside the ns-3.39 directory, it gives: ls: cannot open directory '.': Permission denied So I have ...
K__V's user avatar
  • 13
26 votes
9 answers
6k views

How to fix "chmod" permissions after running "chmod 222 /bin/chmod"?

I ran chmod 222 /bin/chmod to know more about chmod. After that, when I run /bin/chmod, I get permission denied. I tried to change the permissions of chmod back to 755, but it doesn't work. Does ...
Charming_Yard's user avatar
2 votes
1 answer
248 views

Bash script issue: can create User but password is not being set correctly

in my ubuntu 22.04 server I created a bash script that setups my server to serve laravel apps, one of the steps I do is: Downloading mysql Creating a non-root user, Grant all privileges to non-root ...
gabogabans's user avatar
0 votes
1 answer
157 views

AppImageLauncher stuck at 'Watching directories' when trying to run eDEX-UI AppImage

I recently installed eDEX-UI on my Ubuntu system using the AppImage format. However, when I attempted to run the AppImage from the terminal using the command sudo appimagelauncherd eDEX-UI-Linux-...
flyingcloak's user avatar
1 vote
0 answers
2k views

Allow user to run specific commands

How do I enable a user to run specific sudo commands without the need to type a password? I already tried the following: I have a script /usr/local/bin/perform-update with the rights -rwxr-xr-x 1 root ...
Socrates's user avatar
  • 2,513
1 vote
1 answer
584 views

How to enable a non root user to substitute the file /etc/hosts by cp command, without the sudo command?

On my lubuntu 22.04 I need to change the file /etc/hosts. To do that I would to execute the command: > /usr/bin/cp /path/to/new_hosts /etc/hosts by a non root user without the sudo command. To do ...
User051209's user avatar
0 votes
2 answers
148 views

I made a mistake with chown command

i was tried to run a command sudo chown -R $USER:$USER . in a specific folder, but i pressed the button / instead of . I canceled the command before it ended, but it certainly changed the owner of ...
Renato's user avatar
  • 3
3 votes
1 answer
147 views

Use 1.0 TB volume device owned by root, how to add files and folders?

I have a formatted (was windows) 2 TB SSD with Ubuntu 22.04 installed. No Windows on this drive. There was a formatted 1 TB drive on the PC when Ubuntu was installed. No windows on this drive. I ...
steve1916's user avatar
0 votes
0 answers
25 views

How to add a user in only particular directory and no permission to another directory linux

My Root access is /Var/www/html and i create giz folder under html and i need a access for this particular folder for jslpsgiz user and this user can not accessing in other path and folder. Path /var/...
Tuken Mahata JSLPS's user avatar
1 vote
0 answers
1k views

Zeek 'command not found: zeekctl'

I installed zeek on Ubuntu, I did this previously on a previous install; but even though I go to the directory /opt/zeek to initiate and run zeek with the command 'zeekctl start', but I am prompted ...
Jess el's user avatar
  • 11
0 votes
0 answers
233 views

Ownership Issue with wordpress group and user Server and SFTP

First off, thanks to all of you being so supportive in this Forum. I came here to resolve many problems already posted by the community. Today I am reaching out to you because I am noticing an odd ...
Reeen's user avatar
  • 1
0 votes
2 answers
6k views

How to give permission to my current user

so basically i want to able to write data using stfp but when I use it. it says permission denied. I want to be able to do it in this directory /home/user so when I use ls -l command it has following ...
NOOB's user avatar
  • 11
1 vote
1 answer
142 views

Virtualbox VBoxManage show only results with sudo many info inside what I already tried in other post?

When I run this als normal user : VBoxManage list runningvms No results, also no error output, its compleet empty .... When I run this with sudo : sudo VBoxManage list runningvms is see my VM is ...
Hans Van Den Broek's user avatar
0 votes
1 answer
1k views

Shell script runs manually, but not with cron

In my sudo crontab, edited with sudo crontab -e, I have: # m h dom mon dow command 40 4 * * * /bin/bash /usr/bin/verify-miab-backup.sh That script is: #!/bin/bash echo `date` > /home/mythbuntu/...
Aaron Whitehouse's user avatar
1 vote
0 answers
35 views

Ubuntu/opt directory permission denied issue [duplicate]

Ubuntu Newbie here! I am currently trying to install OpenFoam 10 in my machine, and need to edit the bashrc file located in Ubuntu/opt/openfoam/etc. Anytime I try to manually open the file and edit it ...
MigWeld-o's user avatar
0 votes
0 answers
63 views

Why do I not have permission to run this mpic command?

I'm very bad with the command line and have just downloaded Ubuntu (in the microsoft store) yesterday. I'm trying to compile and run a cpp file with a specific command. I'm logged in as a non-root ...
kinggoid games's user avatar
-1 votes
1 answer
76 views

How do I give a .cpp file to my new user

I'm trying to run a .cpp file on Ubuntu. I'm on a Windows computer and downloaded Ubuntu from the microsoft store. Problem is, I couldn't safely run my program on my root (reasons dont matter) and had ...
kinggoid games's user avatar
-2 votes
1 answer
2k views

Bash Permission denied error

I get the following error when i enter the command: printf '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/newwkhtmltopdf.sh bash:...
Koji_422's user avatar
1 vote
1 answer
46 views

Difference between executing .sh/.bash program with sh/bash and executing it directly [duplicate]

If we have a program start.sh, we can execute it with the sh start.sh. But we could execute it giving permission with chmod and run ./start.sh in the command line. What is the difference between those ...
Vitor_figm's user avatar
0 votes
0 answers
132 views

Can te root user access all directories and folders?

Aŕe there files that the root user can't access, because earlier i was using the "du" comand and some files could not be accessed due to permissions
blankC's user avatar
  • 71
0 votes
1 answer
483 views

Can no longer use private key to SSH into Oracle Cloud server

This started yesterday after I attempted to execute an SCP command to send a tarball file I had created on my VM to my local machine, it came up with a text block informing me that the address was ...
oraclewoes's user avatar
0 votes
0 answers
19 views

Unable to clone GitHub private repo "Permission denied (publickey). fatal: Could not read > from remote repository" [duplicate]

I asked for help on stackoverflow and I was told it is more than likely a Ubuntu problem and was recommended to ask here. I'm trying to clone a private git repo to my web folder on Ubuntu. I've ...
CNRP's user avatar
  • 1
1 vote
2 answers
99 views

Terminal not displaying directory, commands executing instantly when pasted; arrow up ==> ^[[A [duplicate]

I'm using Ubuntu 22.04.1 LTS. I created the user "dom" when I first set up Ubuntu. From then, I created another user, named "schule" that also had sudo rights. Here is how I ...
User1986's user avatar
  • 341
2 votes
1 answer
451 views

Terminal Output Redirected to another user's terminal

I wanted to know if it would be possible to redirect the output of my terminal into another user's (that is part of my group) terminal. For example, I would like to be able to execute this command : ...
ReyRey's user avatar
  • 23
0 votes
1 answer
36 views

In terminal I get a ">" symbol when I try to copy a large video screen capture to my external SSD

I use Lubuntu 22.04 LTS on a laptop (ext4) and I have an external 1TB Samsung T7 SSD-drive attached to it, also formatted in ext4. I did record a video screen capture which resulted in a 4.3 GB .mkv ...
plopper's user avatar
  • 129
0 votes
1 answer
1k views

$PATH - No such file or directory (but all files and directories exist)

I am running Ubuntu 22.04 LTS and at first when I was attempting to use a script that would do the following: . ~/.bashrc conda activate {env} I would receive an error that conda init needs to be ...
Calvin's user avatar
  • 11
1 vote
1 answer
226 views

how to us the chown command and mv with find command

I have been searching around and found this question which almost solved my problem. The goal is to have a folder on Ubuntu server which other computers connect to and save files. I have two ...
spinster3908's user avatar
7 votes
1 answer
2k views

scp: How to change ownership of folder and files while transferring files

When I transfer folder with files from srv1 with the username srv1 to srv2 with the username srv2 then the transferred folder and its containing files on srv2 are keeping the ownership srv1 scp -r /...
user19559647's user avatar
0 votes
3 answers
171 views

What is the command to copy the contents of "/media/sf_Shared_Folder/myfolder/" to "/var/www/myfolder"?

I'm using Ubuntu 20.04 and I have a folder full of files in /media/sf_Shared_Folder/myfolder/. I want to copy the contents of this folder to /var/www/myfolder. I prefer to use the GUI, however I keep ...
ozstar's user avatar
  • 1
1 vote
1 answer
987 views

permission will not change on sd card file

I have a shell script I want to make executable on an SD card. I have changed the folder permissions to my user/group. no problems there. when I issue the command chmod a+x script.sh then check the ...
j0h's user avatar
  • 14.9k
0 votes
1 answer
618 views

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

Under the nautilus without root privilege, we can press Ctrl+F10 or right click to bring the popup manual to open a specific folder in terminal. However, it is troublesome to get sudo in the terminal ...
user5151477's user avatar

1
2 3 4 5
15