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


ADVERTISEMENT

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

General :: Make My GUI User A Root One?

Jan 23, 2011

I'm using Debian Squeeze, and I need to give to my gui user (the gnome user I think its called) root permission, I mean, I want to explore, read and write anything I want using my GUI user, how can I do it?

View 14 Replies View Related

General :: Make Sudo Ask For The Root Password?

Jul 9, 2010

When I run sudo as a normal unprivileged user, it asks for my password, not the root password. That's often convenient, but it reduces the amount of information someone would have to have in order to run commands as root. So how can I make sudo ask for the root password instead of the invoking user's password? I know it'd be done with a line in /etc/sudoers, but I can never seem to properly parse the BNF grammar in the man page to figure out exactly what to write.

View 4 Replies View Related

General :: Make A File Read-only Even For Root?

Jun 2, 2010

Remember back in the days of MS-DOS, a file could have 4 different attributes: archive, read-only, hidden, system. As you know, MS-DOS didn't have any user rights or privileges. Files had no owner. If you were at the command line, you could do whatever you wanted, you could change or delete any files you wanted to... so long as they weren't read-only. Under MS-DOS, if you had a read-only file and tried to delete it, you would get an error saying "Cannot delete read-only file". There was a simple remedy to this, just turn off the read-onlyness:

Code:

attrib -r hello.txt

The point I'm trying to make here is that even though you had full permissions over the file, you still had to turn off its read-onlyness before you could make a change. Well I'm trying to do something similar in Linux. Under Linux, the root user has full permissions over every file. But I need to make a particular file read-only so that not even the root user can alter it. I have a few programs on my computer that need to be run as root because they do some low-level networking (raw sockets and the like), and these programs alter my "/etc/resolv.conf" file. Well I need to find a way of making my "/etc/resolv.conf" file READ-ONLY, even for the root user. It doesn't seem as though the Linux filesystem provides a means of doing this, reason being that the root user will always be able to alter any file it wants to. I was thinking though... there's some way I could turn my "/etc/resolv.conf" file into a virtual file of some sort, like maybe I could use some sort of mount program to mount the file as read-only... ?

View 9 Replies View Related

General :: Make The Root Device Read/write?

Mar 4, 2011

I need to change a filename but when I boot up I get the message root device is read-only. Is there a way of changing this so that I can change the filename. I have a Mac Pro running Leopard OSX. The graphics card an NVIDIA 7500GT or driver has failed. It was suggested elsewhere that I change the relevant kext files to filename.kext.old, which I did, now when I try to boot start in OSX I get a message in various languages telling me to restart. I have tried booting in safe mode and from original Installation CD. In Safe Mode I get the same multi language splash screen, from CD I still have the graphic card problem, screen freezes and artifacts appear. So I boot up straight into CLI by holding down CMD-S hoping to be able to change filenames back but it says device read-only.

View 2 Replies View Related

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 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

OpenSUSE Install :: Revert The Changes Or Change The Permissions Again To Root:root Or Make Sudo Work

Aug 10, 2011

Accidentally I changed the ownership of all the directories under / to my own instead of root:root. Now I am unable to use sudo and many bad things are happening. Is there a way to revert the changes or change the permissions again to root:root or make sudo work ?

View 3 Replies View Related

Ubuntu :: Make A Shell Script Run With Root AND Non-root Priveledges?

Jul 28, 2010

I have a bit of a dilemma.

I'm using XFCE and it doesn't by default lock the screen before hibernating. I see this as a bit of a security risk, and as I can't hibernate while the screen is locked, I'm a bit lost as to how to achieve this.

I've begun editing /etc/acpi/hibernate.sh, here's what I have so far code...

If I run with sudo, the system hibernates, but gnome-screensaver will not fire. I can verify this by trying "sudo gnome-screensaver-command --lock". The screen goes black, but is not locked. The screen locks properly without sudo.

So the only solution I can see is to edit /etc/acpi/hibernate.sh in such a way that gnome-screensaver-command runs under the current user, and pm-hibernate is called as root.

Also, when I click the HIBERNATE button in XFCE, how does it call pm-hibernate under root without prompting me for a password? I normally wouldn't be interested in such things, but as it seems relevant to my problem I'm a little more eager to learn

View 3 Replies View Related

General :: Moved To Ssd - Booting - Won't Make The Root Directory On The Right Disk

May 8, 2011

I have successfully migrated my linux install to a new /, /home, /boot partition on my ssd. Everything works fine, except that it won't make the root directory on the right disk. When I change the root=uuid=<drive id> to my new drive everything is fine, but I can't automate that... in other words I have manually typed the uuid of my root-partition for about 100 times now and I am fed up with that how I can save the uuid of my new drive in the startup parameters?

View 2 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 :: Make A Recovery Partition Windows Like Of Root Folder[ubuntu]?

Jan 1, 2011

I want to make it now because it is still under the size of a dvd 3.7GB and i want to put it safe on a dvd to restore fast and not have to customize anything in case of a disaster , like me running dd again )

View 14 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 :: Not Able To Run " Man Mutt" Cmd From Root / Make It Possible?

Jun 8, 2010

I AM NOT ABLE TO RUN " man mutt" cmd from root,

View 7 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 :: Make Error - Make[2]: *** No Rule To Make Target

Oct 7, 2010

I am getting an error as below.

How do I resolve the error: make[2]: *** No rule to make target `', needed by `mpg123'.

How can I resolve this error.

View 4 Replies View Related

Fedora :: Make An Application Launched As Root

Oct 28, 2010

I wonder how I can do to make an application launched as root, without having to go to console and run it from there?

View 14 Replies View Related

Software :: Cannot Authenticate Root Password / Make It Possible?

Jul 9, 2011

Lots of password threads, but I didn't see this.
Installing Debian 6.0.2.1 amd64 on a Dell Optiplex 740.
The default install (simple graphical) works OK. But when I install "graphical expert", the same root password seems to be OK during the install, but doesn't work when the system comes up.

A. I have used a very short pw. It worked before.
B. The root pw is the same as the user pw. It worked before.

I am installing from CD and from DVD, both downloaded and burned as iso. In both cases, I asked for "graphical desktop" and "standard utilities", no servers, no laptop, no SQL.

View 14 Replies View Related

Fedora Installation :: Make Root Partition For 12 X86_64

May 14, 2010

Recently I tried to install Fedora 12 x86_64 to my laptop. I ran the live fedora image from my cooldisk and then pressed "Install to Hard Drive" from live desktop. Then I went forward until I reached the partitioning section. Though I had ~28GB free space in my Harddrive, but it says: "Could not allocate requested partitions: not enough free space on disks." You can see my steps until reaching this problem in these 3

pics:
step1:
step2:
step3:

I captured these steps by using Fedora 12 Live printscreen tool. I tried to install Fedora12 from its non-bootable DVD too, but no difference! So there's only 2 situations:

1. I did something wrong -> install Fedora and use its partitioning tool.
2. There's a bug in Fedora -> confirm that this is a bug and say me an alternative way to install fedora.

View 3 Replies View Related

OpenSUSE :: Make Shutdown Without Root User Using Visudo?

Jun 13, 2010

I was trying to make shutdown without root user using visudoI tried the following still it did not work for mehawk ALL=NOPASSWD:/sbin/shutdown -h now

View 6 Replies View Related

Ubuntu Networking :: Make Terminal As Root By Default?

Mar 7, 2010

For my Project purpose , I need the terminal as root user by default. I dont want to enter the super user password all the time..

View 3 Replies View Related

Ubuntu :: Make A Program Start On Boot, But Not Under Root?

Jul 7, 2010

I need to make my website autostart after reboot. I may just add it to rc.local but i don't want it to start under root

View 1 Replies View Related

Ubuntu :: Make Root Password Visible As Asterisk?

Dec 30, 2010

Is it possible to make root password visible as asterisk(or any other character) on using sudo command??urrently,it does not display anything on monitor,thus,making it difficult to count the number of keystrokes pressed...

View 5 Replies View Related

Software :: Make Initrd That Contains Root File System?

May 19, 2010

I am attempting to PXE boot Redhat 5.4 and load the OS into RAM. Here is how far I have gotten so far:

I have successfully configured my DHCP, TFTP, and PXE servers. The PC that is booting up Redhat 5.4 is able to get a DHCP IP address from the server, grab the kernel and initrd from the TFTP server, and boot up from there. I have this setup working if I store the root file system on a NFS share on the server and use the kernel's NFSROOT parameter. Long story short, I now need to get this same setup working without using NFS if possible. I have spent several hours google searching how to create a RAM disk (initrd) that also contains the root file system. I must be searching the wrong keywords. Anyway, based on what I have read so far, I need to do the following:

1. I need to pass different kernel parameters. It needs to look something like:

2. It seems like newer versions of initrd are created using the cpio tool. So would this simply be a matter of booting to my hard drive that has Redhat 5.4 loaded on it and running:

To create the RAM disk with a root file system attached to it? I have a feeling it has to be more complicated than that but I just cannot find any sites that specifically explain what would be involved with creating an initrd file that can also be used as the root file system.

3. Would I need to modify the init script (many sites call it "linuxrc") at all in order to accomplish what I want to do? For example, I found this site:[url]

My understanding of this page is that you have to create a linuxrc script that basically does the work of decompressing the file system into /dev/ram0 and mounting it to /root. Is something like this actually needed?

4. The kernel must have certain parameters set such as enabling RAM disk support.

I have most of this setup working. I just need to figure out how to basically store the contents of the OS on the TFTP server and then tell the kernel to load that OS into memory. Based on what I have read, this should be possible (otherwise, how do Live CD's work?).

View 5 Replies View Related

Ubuntu :: How Can Be Changed Symlink From / Etc / Rc2.d Directory

Feb 27, 2010

How can be changed a symlink from the /etc/rc2.d directory.I want tho change the time of start from S20 to S60.

View 1 Replies View Related

Ubuntu :: Samba Symlink Change With 10.10?

Oct 10, 2010

I have a server with my music on it. There is a network share where all my machines can access that music. In the past I have created a link inside the Music folder of each user/machine which links to the Samba share. I have been doing this by linking to /home/[username]/.gvfs/share on server.

In 8.10 I am able to drag and drop to create the necessary link from Music to share on server. With maybe 9.10 I lost the ability to drag and drop the link and had to resort to the command line ( ln -s "/home/[username]/.gvfs/share on server" /home/[username]/Music ). With 10.10 I don't seem to be able to create this link using any method. (Any link which is created is linked to / .) (After 8.10 admin rights are required to create the link from ~/.gvfs/whatever.) This method is very handy as all of the machines and users point to the exact same location for their music (~/Music/share) and if I can't create that link this system of organization fails.

View 1 Replies View Related







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