I attempted to follow the instructions to edit files in nano. If i just type nano notes.txt it won’t let me save the file (permission denied) , if I type in sudo nano notes.txt its asking for a password , but the HTB-student password wont give me sudo privileges?
Never mind. I used touch to create the file notes.txt, then I went into nano and it worked just fine. Is this the normal way an unprivileged user would do this or is there another way?
its normal, just dont use sudo, if not in sudoers. nano filename.extension
I tried that first but I only got “permission denied”
maybe you don’t have write permission in that particular folder, try writing to /tmp