General :: Symlink And Sudo Executable?

Jun 14, 2010

If I have the below sudoers entryusera ALL=(userb) NOPASSWD: /home/userc/bin/executable-fileusera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-fileWhen I log-on as usera and try running the below commands, it workssudo -u userb /home/userc/bin/executable-filebut NOT the one below.sudo -u userb /home/userc/bin/link-to-another-executable-fileSorry, user usera is not allowed to execute '/home/userc/bin/link-to-another-executable-file' as userb on hostname.

View 1 Replies


ADVERTISEMENT

General :: Fatal: Bad Magic Number In Executable `prime' (not An Executable?)

Sep 3, 2010

I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?

fatal: bad magic number in executable `prime' (not an executable?)

View 1 Replies View Related

General :: Why Can't Make Symlink Except As Root

Mar 13, 2010

In my MIDI music collection, I have a "best" folder with duplicate copies of only my favorite files. Recently I thought, why waste memory with duplicates--can't I just put symlinks in the "best" folder? So I tried to, in Konqueror. It would only let me make the symlinks from the Konqueror superuser account.

View 4 Replies View Related

General :: Do Symlink Or Hardlink At Start Up?

Jun 7, 2011

2.6.38-8-generic
Mint 11 64 bit

I'm trying to move a file from a directory to another one and create a symlink but seem to be doing something wrong. Have done "man ln" and looked up info in coreutils but I don't seem to be able to get it right. There are two files in ./home/jim/.config/banshee-1/ that I want to move to ./home/jim/Dropbox/banshee. I have created backups of both and created the new folder in Dropbox. see attached screen shots. I then run

Code: jim@saturn ~ $ sudo ln - ./home/jim/Dropbox/banshee/banshee.db ./home/jim/.config/banshee-1/banshee.db
ln: creating symbolic link `./home/jim/.config/banshee-1/banshee.db': No such file or directory and get the above error message. Now I know symlinks do not need to be complete at the time of creation, but I'm not sure if I have done this right or not and if I try and read and write banshee.db at the original location if it will do it properly and efficiently. Is this a case where I should do a hardlink instead and have both files. If I want to do this every time at start up, how do I automate the commands once I have them right?

View 5 Replies View Related

General :: Create Symlink For Every File Want To Include?

Jul 4, 2010

I have a CMS I have developed, which will run on several sites all hosted in sub directories on my dedicated server. I want to create symlinks for the main files of the CMS, including all config files, functions and admin sections. Then there will be a few files specific to each site.I read some tutorials on creating symlinks, although most are not very good in my opinion.

Do you have to create a symlink for every file I want to include? Or can I just create a symlink to a directory? For example:CMS is located at /www/cms/.Can I make www/domain1/ point to that directory, and if so, will all files include themselves correctly. I think I am a bit confused on how this works.

View 1 Replies View Related

General :: Shell - On (CentOS 5), Remembering When We've Followed A Symlink And Being About To 'cd?

Dec 10, 2010

I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd' to navigate back out of the symlink rather than just navigate to the parent directory of the linked-to folder...

For example:

$ ls -al /jobs
tech -> /mnt/projects1/tech
temp -> /mnt/projects2/temp
$ cd /jobs/tech
$ cd ../temp
../temp: No such file or directory.
$ pwd
/mnt/projects1/tech

View 2 Replies View Related

General :: Symlink All Files But Copy Certain Extensions?

Jul 27, 2011

I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to /bar/a,b,c and then copying over certain files with a certain extensions.

View 1 Replies View Related

General :: Sudo Cd /root Gives Sudo - Cd - Command Not Found

Jan 6, 2011

Kernel 2.6.21.5, Slackware 12.0

Code:

Code:

On the other hand

Code:

So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command.

View 3 Replies View Related

General :: Rdiff-backup Keeps Backing Up A Symlink, Ignoring Files Under It

Dec 6, 2010

I've got a backup.list file that looks like this:

+ /ext/installs
+ /ext/media
- /ext
- /backup
- /dev
- /mnt
- /proc

/ext is a symlink to /mnt/vg1/vol1, under which are installs and media directories.

I'm running:

rdiff-backup --backup-mode --include-globbing-filelist backup.list / /backup

rdiff-backup keeps recreating a symlink: /backup/ext -> /mnt/vg1/vol1, which is kind of missing the point, because then it doesn't actually back up the files in /mnt/vg1/vol1/installs, etc.

View 1 Replies View Related

General :: Use Symlink To Provide Access To A Specific File Under A Restricted Directory

Jan 24, 2011

My home directory's permissions allow only myself access to it. Is it possible to put a file inside my home directory with.. say.. full permissions, and create a symlink to it so other users can access that file alone inside my home folder? System is Ubuntu Karmic.

View 2 Replies View Related

General :: Make A Symlink That Redirects To The Directory Rather Than Acting As An Alternate Path?

Sep 30, 2010

is there a way to make a symlink that redirects to the directory rather than acting as an alternate path? In other word, what I have now is:

[Code]....

I want my pwd to be the hardlink pwd rather than the symlink pwd after changing my directory.

View 2 Replies View Related

Fedora :: Make A Executable (application/x-executable)

Aug 21, 2011

I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).

View 3 Replies View Related

Ubuntu :: Cannot Open An Executable File Because Of Executable Bit?

Jun 20, 2010

I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?

View 3 Replies View Related

General :: What's The Difference Between Sudo Su - And Sudo -i

Jun 19, 2011

It is my understanding that they do the same: they ask for my password (if I am allowed in /etc/sudoers), and give me a login shell as root.

Is there any difference between them?

sudo su -
sudo -i

Also, what's the difference between

sudo su
sudo -s

I think that they both ask for my password, and give me a shell with my old environment variables.

View 1 Replies View Related

General :: Symlink Each Of The Files In One Directory To Another Directory?

Feb 11, 2011

If I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:

/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c

View 3 Replies View Related

General :: Why A Folder Must Be Executable

Jul 28, 2010

Permission for files:

chmod 664 myFile // rw-rw-r--

And for folders:

chmod 774 myFolder // rwxrwxr--

If I only use the "read and write" permission, the folders won't show its contents, why ?

View 6 Replies View Related

General :: How To Get Executable To Work?

Mar 10, 2010

I cannot figure out how to "install" a program I downloaded. It comes in Windows, Mac, and Linux flavors, and I did acquire the Linux version, which comes in a ZIP file. After I unzip it and cd to the directory it is in, I had an earlier version working a few months ago, but cannot recall how I made it work back then.

View 2 Replies View Related

General :: How To Use A Executable File

Oct 21, 2009

some of the programs that i downloaded are launched with a linux executible file and i don't know how to make it work, how do i execute it double clicking doesn't help it just asks me which program i would like toopen the file with

View 5 Replies View Related

General :: How To Run Executable Files

Oct 20, 2010

I have a Nvidia driver that i need to run from the console.How do i do it and how do i find the file (to run it) from the console

View 14 Replies View Related

General :: Why Would Executable Say It Doesn't Exist / When Try To Run It?

Sep 28, 2010

I have a compiled program, a tagger to identify parts of text, which claims it does not exist.This executable has to be called by a generated script, which is how I ran into this issue. What are the reasons this error could show up?The executable was copied from another machine.The file does have execution privileges (it gives a proper not-allowed message without them)I've tried copying the file to a different location (same problem)I've tried replacing the file with a fresh copy (same problem)The file does exist. Opening it with pico shows a file with binary data.

View 4 Replies View Related

General :: Using Variable To Run An Executable File?

May 27, 2010

I have an executanle file in a directory (say /home/mahmood/test/do-sample) and in a bash file I want to run it:

Code:
#!/bin/bash
M_VARIABLE = $HOME/test

[code]...

View 3 Replies View Related

General :: Can Not Start An Executable File?

Aug 5, 2009

I have an executable file called jboss in the current directory:-rwxr-xr-x 1 test jboss 7151 Aug 5 11:04 jbossAn in the file jboss it looks as follow:

Code:
...
#---------------------------
# command handling

[code]...

View 3 Replies View Related

General :: Make A File Executable And Then Run?

Jan 24, 2010

I have created a file named as pm under the path /home/ppp/ i.e. /home/ppp/pmTo make it executable, I've used command: chmod a+x /home/ppp/pm while residing in root directory.But while trying to run from root by typing ./pm or within the directory /home/ppp, it was displaying that directory not found.Please help by providing the step by step procedure, so that I would be able to run my file from root or from the directory.

View 3 Replies View Related

General :: Changing The Name Of Executable File A.out?

Jan 18, 2011

Is there any way to change the name "a.out" of executable file to any other name of our choice..

View 5 Replies View Related

General :: Setting An Executable To Be In Another's Path?

Dec 6, 2010

I have program (command line) that requires another program be installed and in its path. So I downloaded the file (.tgz), and extracted. I followed the compile and make instructions and ended up with a folder on my desktop that contains the excutable but is not in the path of the the other program. How can I do this..I think that I have about 20 more .tgz files to do this with.

View 2 Replies View Related

General :: Stop An Executable File?

Feb 23, 2011

i run this command on file : chmod u+x recon (recon is the name of the file). then i run the file in question (. recon). i just want to stop it; how to do this ?

View 9 Replies View Related

Ubuntu :: Sudo Ifconfig Eth0 Down Vs Sudo /etc/init.d/networking Stop

Jun 10, 2010

explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?

Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop

View 3 Replies View Related

Software :: Pam_start Error 26 \ Use Sudo Su And Add An Account To A Group What's Allowed To Use Sudo?

Jan 2, 2011

I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:

Code:
ldd /usr/bin/passwd
and

[code]....

View 4 Replies View Related

General :: How To List Imported Symbols In ELF Executable

Jul 9, 2010

For PE executable, I can list the imported symbols using

dumpbin /imports FILE.EXE

or using the depends utility which is GUI application.

`nm ELF-binary' just returns "no symbols".

View 1 Replies View Related

General :: How To Only Copy Executable Files (or Without Extension)

May 9, 2011

Suppose there is a directory named mydir containing ...
aaa.cpp
aaa.h
bbb.cpp
bbb.h
Makefile
a
b
Where a,b are executable files. What I want to is to only copy a and b to another location. Is it possible? (other than by manually issuing copy a,b another_dir).

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved