0
votes
0answers
6 views

using Sublime Text 2 without having to open as root

I'm trying to figure out how I can run sublime text 2 without root. I have been told prior to use the command gksu sublime & and that has been working, but all the files that I create from within ...
0
votes
0answers
32 views

SSH Write Failed: Broken Pipe [migrated]

I used to be able to connect via ssh (terminal) with the user I have created but now I keep getting: "Write Failed: Broken Pipe" and I can only connect as root In the ssh auth.log I get the following: ...
1
vote
1answer
34 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 ...
0
votes
0answers
24 views

Permissions not changing in Terminal [closed]

I have a web server and I'm trying to change the permissions to my var/www/home folder so that it'll show on the Internet. I have created the folder home into the folder var/www/ When I do ls -l ...
2
votes
2answers
138 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
73 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
29 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
29 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
244 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
69 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
50 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
120 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
64 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
59 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
153 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
vote
2answers
817 views

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

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
111 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
123 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
67 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
119 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
72 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
63 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
764 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
517 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
520 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
551 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
332 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
502 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
35 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
47 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 ...
0
votes
3answers
3k 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
198 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
235 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
519 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
625 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
310 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 ...
1
vote
2answers
2k views

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

Some file is existing in my NTFS file system. I'm trying to delete it but unable to do so. It is giving: rm: cannot remove `zigBqC04': Input/output error Any other files also could not be copied in ...
2
votes
1answer
162 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': ...
2
votes
1answer
364 views

Can I allow a standard user to execute only certain sets of command in terminal? [duplicate]

Can I create a whitelist of commands that a standard user can execute in the terminal in Ubuntu 12.04 desktop? I don't want to block the terminal for the standard user.
0
votes
1answer
342 views

How can i prevent standard user from accessing terminal?

How can i prevent/restrict standard users from accessing terminal in ubuntu-12.04.2-desktop-i386 ? I need to prevent standard users and administrators(not root account) in Ubuntu user accounts from ...
1
vote
1answer
942 views

I need to use sudo for any Hadoop operation, how to change permissions?

I am self learning Hadoop, starting yesterday. For the purpose of learning, I have set up Ubuntu 13.04 64-bit on VMWare Fusion on my MacBook Pro. And I am following this excellent tutorial. Before ...
1
vote
1answer
114 views

Trouble working on wordpress development locally due to file permissions

I am a newbie wordpress developer switched to ubuntu 12.04 from win 7. I find these root file permissions really difficult to deal with. i installed geany but can't open root files with it. How do ...
0
votes
1answer
654 views

Cannot access drive mounted by sshfs using Ubuntu file manager

I've run into a problem with sshfs that I haven't seen before. I mount serverB to serverA by doing the following (while logged in as root on serverA): mkdir serverBLink sshfs root@serverB:/ ...
1
vote
2answers
1k views

How do i change the password of root, using webmin in one command line?

I have lost root password of one old server, where i can only have normal user login and via webmin login. Via webmin interface i have one option to execute command, i have been trying the following ...
1
vote
0answers
185 views

A user keeps giving the wrong group permissions on new files

I have a number of services on an Ubuntu 12.04 server and I'm making each of them run under their own user account instead of running under my account (for improved security as well as seeing which ...
66
votes
9answers
6k views

Run same command again but as sudo

Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission. Is there a way to run the same command again but as a super user?
0
votes
1answer
72 views

bash permissions

My friend was trying to tighten up security on his ubuntu server and changed the permissions on bash. He logged out, and now the computer won't let him log back in. The server is an off-site server ...
1
vote
1answer
5k views

Sudoers NOPASSWD for command not working but ALL is

I've been trying to grant www-data to use sudo service apache2 restart without a password but no matter what I try, nothing works. I have read a few hundred posts regarding this issue on different ...
0
votes
1answer
177 views

“Failed to setuid to root.” How do I Establish a VPN network?

My university decided that the old VPN-network, which worked fine, wasn't good enough anymore and abandoned it. Now I have to establish a completely new VPN-network. My university provided me with a ...