0
votes
1answer
27 views

How to prevent directory from deleting by user?

Suppose a directory dir1 is created by sudo on Desktop. sudo mkdir dir1 Then I applied chown and chmod as following: sudo chown root:root dir1 sudo chmod go-rwx dir1 Now dir1 is only accessible ...
0
votes
1answer
15 views

don't have permission or doesn't exist

I'm trying to configure an Oculus rift and I have a configuration script that needs to be executed: GLADOS@deathbox:~/Desktop/OculusSDK/Tools/OculusConfigUtil$ ./OculusConfigUtil_i386 bash: ...
1
vote
1answer
65 views

sed “Permission denied” and “No such file or directory” errors while building Clockwordmod

Whenever I execute the command build/tools/device/mkvendor.sh samsung_aegis2vzw /your/path/to/the/boot.img I get this as the output build/tools/device/mkvendor.sh: line 83: /sedcommand: ...
3
votes
2answers
141 views

Sudo error, setuid [duplicate]

I'm using Ubuntu 14.04 and I run some command series on Terminal. But at one time I ran sudo chmod 777 /usr/bin/ -R And giving some permissions on this directory. After that, I'm continue my work, ...
0
votes
1answer
109 views

FFMpeg permission denied error

I installed ffmpeg into /root/bin I followed this guide: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu I now want a non admin to access it. I created a symbolic link in /usr/local/bin now if ...
0
votes
0answers
67 views

Cannot run the terminal: “Not such file or directory” and “hostname has changed”

My problem is: I can't use the terminal in Xubuntu 14.04. If I launch it, this error is appearing: grep: /opt/aster113/etc/codeaster/asrun: No such file or directory Hostname has changed, running ...
0
votes
1answer
51 views

What does the 'sudo -s' command do, and how is it used in this example?

I have the following doubt. In a tutorial related to a software installation that I am following say that I have to execute the following commands (I am doing it into an ssh shell, so this list of ...
0
votes
0answers
177 views

Unable to change permissions for apache file 000-default.conf

I am trying to change the permissions for the apache file /etc/apache2/sites-enabled/000-default.conf when I input the command sudo chmod 755 000-default.conf the file still stays to ...
4
votes
2answers
76 views

How to create two users who can read files of each other?

How to create 2 users a and b from shell, that will be able to read files of each other( say a can read the files of b, and b can read the files of a) . sudo adduser newuser sudo passwd newuser
6
votes
3answers
631 views

What does tar's -p (preserve permissions) flag actually preserve?

What does the -p flag actually preserve when creating and extracting a tarball? Is it the rwx permissions it preserves? When I created a htdocs/ tarball owned by root, extracting it to my local ...
0
votes
0answers
44 views

listing permissions

I'm a biomedical scientist and I'm having trouble running a custom data analysis pipeline written by one of our collaborators. His script crashes with /bin/sh: 1: ...
0
votes
1answer
32 views

Repair filesystem permission

I accidentally executed sudo chmod -R 777 / I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything. But now, i can't ...
1
vote
2answers
155 views

Change group access to directory and all sub directories and files

There is root ownership and root group applied to /media/pandya/Ext4/* ("pandya" is user-name). To apply group "pandya" I run following command: sudo chown -hR root:pandya /media/pandya/Ext4/* ...
1
vote
2answers
81 views

Attempting to setup Ubuntu 12.04 SSH Server: -bash: /etc/hostname: Permission denied

Attempting to setup an SSH-server running Ubuntu 12.04. Went to "HowToForge" to scout for potentially advanced or knowledgeable advice upon how to accomplish this, then I ended up running into a ...
1
vote
1answer
164 views

How to edit /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts and similar files and why they can (not) be edited

I a trying to edit the following file (ls -alstr output): 0 -rw-r--r-- 1 root root 0 Apr 15 17:07 /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts Unfortunately, if I try to edit it with vim or simply ...
2
votes
2answers
295 views

“sudo mv /fromdir /todir” - not recognizing the fromdir location

I'm trying to get a small folder (/test) with a couple small text files to a folder that I don't have write permissions for. I'm the sole user on this account and I don't know why I wouldn't have ...
2
votes
1answer
435 views

couldn't open output file: Read-only file system

I just installed Ubuntu. My problem is I am attempting to write a log file to home. I am using logcat from a python module called adb. When I attempt the terminal command adb logcat -f <path> I ...
2
votes
1answer
37 views

How can I list files that the current user can access?

For security auditing purposes I would like to go through my systems' users and make sure they don't have filesystem access to more than I'd prefer they did. I'd like something that outputs in the ls ...
0
votes
0answers
36 views

command line: How to give right to log in using ssh to user?

To learn some server management I just created a new Ubuntu 12.04 server. Since I only had a root account I created a new user with adduser kramer65. I now want to ssh into the server using that new ...
1
vote
1answer
568 views

permission denied in running script

I am running a script but there is an unusual warning: This is what happened in my console #whoami root #ls -l test.sh -rwxr-xr-x. 1 root root 1894 Feb 2 01:58 test.sh* #./test.sh -bash: ./test.sh: ...
0
votes
0answers
112 views

Audio playback freezes on setuidgid from daemontools service

I can't seem to use aplay or cvlc in tandem with any other audio applications when it's running as a service under daemontools. The setup is that I've got a bash script that I've got running that ...
1
vote
0answers
71 views

“Command not found” when running a program

I downloaded the Citrix receiver for Linux 13.0 (I'm running Ubuntu 13.10 64bits) from http://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-130.html. I unpacked it using alien, but ...
0
votes
1answer
25 views

Cannot make shell file excecutable

read-only file system error when trying to make shell file excecutable. FIX?
0
votes
1answer
209 views

Some image files won't be displayed by Apache, returns 500 error (file ownership/permissions)

I just copied all my files from one Ubuntu server to another, and everything works fine, except that Apache returns a "ERROR 500 - Internal Server Error!" on image files that on the old server was ...
0
votes
0answers
65 views

How to make a command execuitable without root previlages? [duplicate]

I want to make some commands,such as ntpdate,shutdown etc, to execute without asking me for a password or without using "sudo" for "all users"(even normal users who have no sudo privileges) . I want ...
-1
votes
1answer
70 views

Objective: understanding File permissions

I want to write a shell script that takes two arguments: username(usr) and filename(fname), then resolve and show permissions of the given user on the given file.
2
votes
3answers
208 views

Can't install .sh file

OK, I know there are over 100 questions on this forum just like this one, I know because I've read every one of them, with no luck. I have downloaded a .bin file, extracted the contents into a folder. ...
-1
votes
2answers
2k views

Bash return permission denied error when I redirect the output of ls to a file [duplicate]

I'm currently studying shell commands, one of the exercises consists in creating a structure with various directories and subdirectories. I wrote ls -laR > hello, it was supposed to create a text ...
2
votes
1answer
136 views

Bash error when trying to execute a file

i am kinda new to linux and in programming so please excuse my lack of knowledge. I'm trying to run a basic program named trial.c with an executable file named trying but when I type ./trying in the ...
0
votes
1answer
146 views

run a script as non-root user

I want to run a script say some_script.sh(that requires root permissions, contains some sudo do something in a for loop) as non-root user. I have a script as shown below. I want to run this script as ...
0
votes
1answer
81 views

./opt/lampp folder & file editing help

I installed XAMPP but I need to edit folders and files in there. I did the following groupadd lampp usermod -a -G lampp kyle chown -R root:www-pub /var/www chmod 2775 /opt/lampp find /var/www -type ...
2
votes
0answers
140 views

How do I reinstate my admin user privileges to global read/write

I am running Ubuntu 12.04 LTS. I only have the one user which I created when I installed Ubuntu. Everything has been fine - love it - until I updated a software package recently from the command line ...
1
vote
1answer
86 views

How to create a directory for everybody? [duplicate]

I have a lot of music that I want to share with and on all the accounts on my Ubuntu Linux box. I created one in /usr/share/usrmusic changed the user and groups to userx:users and the permissions to ...
0
votes
1answer
69 views

I need to get past my permissions to recover data

Due to some mishaps, I am unable to boot into Kubuntu at all. However, my data is still on the hard drive. I managed to get one of the other two computers to which I have access to read the disk by ...
0
votes
1answer
1k views

Can't redirect standard output

I'm following along with the examples in Chapter 6 Redirection of The Linux Command Line (2012). I am trying to redirect the standard output of an ls command to a text file. I keep receiving a ...
0
votes
2answers
776 views

How to prevent users from renaming files while providing write permissions on Linux

For some special purpose, I want to prevent non-root users of the Linux Server from changing or renaming the filenames. However, they can modify and write to the contents of the file. How to do this ...
-3
votes
4answers
923 views

permission denied while making a file without asking for password

I'm trying to create a file using cat > list but each time it shows me "Permission denied". xyz@jaishreeram:/home$ sudo cat > list bash: l: Permission denied xyz@jaishreeram:/home$ sudo cat ...
-1
votes
3answers
657 views

How can I execute c programs in ubuntu 13.04

I upgraded my ubuntu to 13.04 version. After this upgrade I am not able to execute c programs in terminal. When I try to execute, it shows an error as shown below bash: ./cd: Permission denied ...
0
votes
2answers
478 views

How to permit SUID

I need to permit suid for my user account on my ubuntu 13.04. According to the mount command the bit flag for my account is nosuid. how do i change it to suid.
0
votes
2answers
623 views

effective user id not changing when setting uid to root

I'm currently reading a book on programming with C, i got to a part where i got to write a program which will display the real uid and effective uid that the file is being executed on. After compiling ...
0
votes
1answer
40 views

Can only open bukkit.sh with Java Web Start

I'm trying to run bukkit.sh file with java 7 runtime. Instead the only application I can associate the bukkit.sh java file is java web start. I've done the basics, installed java7, set the bukkit.sh ...
0
votes
1answer
54 views

Setfecl: Option -m incomplete, why?

My commands: sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs It returns: setfecl: Option -m ...
2
votes
3answers
5k views

Not able to install *.run file in Ubuntu? [duplicate]

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI. I have to install few softwares in Ubuntu which are as follow: MPLAB X IDE version 1.90 XC8 Compiler and ...
-1
votes
2answers
228 views

How would I execute a .jar using terminal, permissions only does Read and write, yet not execute

The file I am trying to execute is TechnicLauncher(1).jar I have tried looking in the permissions (as mentioned before) but it does not show where it can be executed. I have also tried looking in ...
1
vote
1answer
291 views

Disk Quota questions

I have some problem when I'm trying to allocate disk limit for user in Ubuntu Desktop 12.04 LTS system. I use edquota to specify the amount of disk space for user after edit fstab file. Here are some ...
1
vote
1answer
1k views

Executing a script as another user still cause some permission trouble

I have to execute this script with PHP. The user www-data can't do it, so I modified the sudoers file: www-data ALL=(user2) NOPASSWD: /home/user2/bin/test.sh The script is executed in php with this ...
7
votes
3answers
1k views

How can I recursively copy files without overwriting existing permissions?

When I copy files from one directory to another, the directory permissions get reset (e.g: from 0755 to 0775), and this causes problems, forcing me to go back and manually reset directory permissions. ...
0
votes
1answer
487 views

how can I recursively run chmod -x?

So I have my music collection living on my 12.04.2 server. This Collection has traveled with me over the years from a Windows machine to a MacBook Pro, and then finally to where it is today on the ...
3
votes
2answers
3k views

unable to delete file - rm: cannot remove Input/output error

Some file is in my NTFS file system which I can't delete. It's giving this error: rm: cannot remove `zigBqC04': Input/output error Any other files also could not be copied in that folder and ...
2
votes
1answer
189 views

Cannot delete a tar.bz2 file from pendrive

I want to delete a tar.bz2 file from my pendrive. I tried shift+delete, but nothing happened. Then in terminal I tried sudo rm command, I got the following error - rm: cannot remove `avi.tar.bz2': ...