Ubuntu :: Links In Root Directory ?

Oct 3, 2010

Code:

The lines highlighted in red are symbolic links to the boot files. Yet, they are not used and, if deleted, the system still works.

Anyone know why they are there? Is it a leftover from Linux days gone by, or does SOMETHING use them?

View 2 Replies


ADVERTISEMENT

General :: /etc/rc.d Directory Soft Links / Purpose Of Soft Links In /etc Directory?

Feb 20, 2011

I can see some soft links in /etc directory which are pointing to /etc/rc.d Directory contents.

Code:
lrwxrwxrwx. 1 root root 7 Jan 31 08:19 rc -> rc.d/rc
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc0.d -> rc.d/rc0.d
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc1.d -> rc.d/rc1.d
code....

Any body please tell me what is the purpose of these soft links in /etc directory ? I am using RHEL 5.4 ...

View 3 Replies View Related

Server :: UShare - Directory Recursion And Symbolic Links / "drill Down" Directory Structure To List Files?

Jan 22, 2010

I have uShare 1.1a setup to talk to my XBox 360. If I share a directory that has no subdirectories, the video files display on the XBox. However, most of my files are in sub-directories on a different partition - I don't really want to copy them to the share, but uShare doesn't seem to recognise any sub-directories or files contained therein.

I have tried setting up symbolic soft links directly to the video files (although this is a pain, it is better than moving the files)...

Code:
ln -s /home/jonftp/TV-Shows/Buffy/Season-1/Buffy-101.avi /home/share/Buffy-101.avi
...but these don't show up on the XBox either.

How can I get uShare to "drill down" the directory structure to list the files or how can I get uShare to follow symbolic links?

View 2 Replies View Related

Ubuntu :: Hard Links Only For All Files In Directory?

Jan 15, 2010

I have a Music folder and I need to create hard links for all files in Music directory.For example:

~/Music/01 - the song.ogg // hard link for this file
~/Music/Folder/02 - a song.ogg //and for this file TOO!

~/Other Music/01 - the song.ogg
~/Other Music/Other foldr/02 - a song.ogg

I want hard link files in folder and in subfolders, but not folders its self.

View 6 Replies View Related

Ubuntu Servers :: Make Apache Show Symbolic Links In A Directory Listing?

Jul 17, 2011

I am trying to make my Apache server show symbolic links in a directory listing, but have so far been unsuccessful. In my latest attempt, I have placed the following code in .htaccess, in the directory with the symlinks that I want listing:

Code:
<Directory />
Options All
</Directory>
Im httpd-vhosts.conf, I have also placed the following code within the relative <VirtualHost></VirtualHost>:

View 5 Replies View Related

General :: Tar Ball A Directory Hierarchy With Soft Links In System?

May 4, 2010

Can you please tell me how can I tar ball/compress a directory hierarchy with soft links in Linux?

View 2 Replies View Related

General :: Large Directory With Wget With Two Links Pointing At Same Thing

Mar 19, 2011

I'm trying to crawl a directory on a website and basically download everything in it. The structure is simple enough(but there are also multiple folders), but there is one thing that makes wget choke up.Both of the links work, but they are both the same thing. So wget will download the same file twice. How can I make wget ignore the first one? but this doesn't seem to actually do anything. It will still download the duplicate URLs

View 1 Replies View Related

General :: Create Hard Links Within A File System To A Directory?

Aug 1, 2010

I am trying to create hard links within a file system to a directory, but unable to do that. is there any limitation to create hard links to directories within file system ?

View 4 Replies View Related

Fedora Servers :: Apache - Creating Symbolic Links To Movies Directory

Mar 6, 2009

I'm using FC10 and I want to create a symlink to my movies directory in my home folder:

This is what I did:
I created in
/var/www/html
ln -s /home/username/movies movies

Then in /etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/home/username/movies">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>

Restart apache and then the test page is working.

The directory /home/username/movies has following permissions:
drwxrwxrwx 2 apache apache 4096 2009-03-05 23:43 movies
When trying to access my webpage at localhost/movies I get the 403 Forbidden Error.
Ok then, entering:
sudo -u apache ls /var/www/html
> movies
This works, sudo -u /var/www/html/movies returns the permission denied error.
As well sudo -u /home/username/movies
Is the user apache chrooted by default? SELinux is in permissive mode. What can I do?

View 4 Replies View Related

General :: Method Of Changing Directory To A Symbolic Links Parent Or Source?

Aug 3, 2011

I have folder stucture:

|- dir1/
| |- sub1/
|
|- dir2/
|- sub1link -> /dir1/sub1/

and my current working directory is sub1link, is there a quick way to either: change directory to link source parent (i.e something similar to cd .. but take the user to /dir1/ change directory to link source (i.e switch from /dir2/sub1link/ straight to /dir1/sub1

View 1 Replies View Related

Ubuntu :: Root User Directory Does Not Exist, Root Password Not Recognised?

Oct 26, 2010

I no longer have access to my root desktop. On a session I attempted to change the root username but i apparently assigned it a wrong directory that does not exist. When I rebooted with my new root username, i was instead recognised as a simple user (no root privileges). I tried the console to change to "old" root but root password is not accepted and there is no way to access to sudoer files. it seems that inserting a new username requires root privileges and i am back to square one. Simply logging with old root username and password after restart gives me a blank screen with nothing on it and cannot even reboot.

View 9 Replies View Related

Security :: Secure FTP - Root Privileges After Logging In Form A Macintosh And Could Browse The Root Directory

Apr 12, 2010

I run ProFTPd with TLS authentication on my Debian Lenny server. My problem is that despite of the fact that my users connect chrooted, one of my friends had root privileges after logging in form a Macintosh and could browse the root directory, too.

View 1 Replies View Related

Ubuntu :: Links Browser Script - Automatically Fills In The Credentials On The Links Login Page?

Dec 6, 2010

At my Uni, we use a web-based login for our internet connections. Its based off of Cisco, and every Wednesday night every computer on campus must re-enter their credentials to use the network.

Normally on my several computers I simply pull up the Terminal, point links to google.com using

Code:

And enter my credentials when Cisco redirects to the login page.

Literally, the process is

Code:

Then ENTER to accept the redirect, down arrow to skip over the logo image, USERNAME, ENTER, PASSWORD, ENTER, ENTER.

Naturally, this is EXTREMELY time consuming, as I have about 5 computers located around campus and must physically walk to the machines and login every single week.

My question is, How would I formulate a program that does the following;

1) checks for connectivity (i.e. is able to reach/resolve to the greater part of the internet) and

2) automatically fills in the credentials on the links login page?

View 2 Replies View Related

General :: Installing As Non-root In A Root Owned Directory

Mar 8, 2011

I have a machine which has only /opt with some decent amount of space where I can install a software. /opt belongs to root:root. The software I want to install cannot be installed as root user.

So lets say I create a directory called /opt/install1 and then chown -R install1 to belong to user1. And now I install the software under /opt/install1 with user as user1.

Is this a best practice violation? There could potentially be just /opt/install1 belong to user1 and in future everything else created under /opt belonging to root..

View 2 Replies View Related

Programming :: Scripting : Change Markdown Links To Wikitext Links?

Feb 3, 2009

I have a personal wiki of notes, with now thousands of links in markdown format:

[link text](http://example.com)

but now that fckeditor is available for mediawiki (very beta), it has become much better to just stick with wikitext format. There are only a few conversions to do: tables, links, and bulleted lists. The lists are a fairly simple regex and fckeditor magically reformats the tables, so all I'm left with is the links. But I'm not a regex master. How do I reformat code...

View 12 Replies View Related

Ubuntu :: How To Go For ROOT Directory

Jul 12, 2010

I installed Ubuntu by Selecting "Install inside windows" options.

Now by default when I login, and goto Terminal, it will be:

nani@ubuntu:~$

I want to go to Roor directory. What is the command for that?

View 9 Replies View Related

Ubuntu :: How To Put Index.php In Root Directory

Jul 27, 2010

How do I put index.php in my root directory, since I think because of a missing index.php or index.html, I am getting a forbidden 403 error.

View 1 Replies View Related

Ubuntu :: .Trash Folder In The /root Directory?

Feb 26, 2010

.Trash folder in the /root directory. If I'm using gksudo nautilus, where can i access this cause It may have trash I can delete. (Trying to free up space , and I already used wacktomack's guide)

View 3 Replies View Related

Ubuntu Servers :: Change Tomcat6 Root Directory In 9.10?

Jan 6, 2010

I have newly installed Ubuntu server 9.10 in my server machine.And it has tomcat6 in itself.My friend have built a Java software in Fedora ,and he wants to move it to the new server.But problem is the directory structure is different between two systems.He has to either change his directory setting in his software or change the default tomcat6 ROOT directory. But I have not find any configuration file can do this job(change the tomcat default ROOT directory ).

View 3 Replies View Related

Ubuntu Security :: Hidden Folders In Root Directory?

Jan 27, 2010

What, if any, significance is there to the following message shown in the rkhunter.log?

Code:

[21:11:58] Checking for hidden files and directories [ Warning ]
[21:11:58] Warning: Hidden directory found: /etc/.java
[21:11:58] Warning: Hidden directory found: /dev/.udev
[21:11:58] Warning: Hidden directory found: /dev/.initramfs

What need would there be for hidden directories to exist in /?

View 3 Replies View Related

Ubuntu :: Terminal Starts In Root Directory Instead Of Home?

May 2, 2010

After upgrading to Lucid, gnome-terminal and xterm both start in the root directory (/); I'd like for them to start in my home directory instead. I had added "cd /home/myname" to the end of .bashrc, and this worked well as a temporary fix, but was never necessary in Karmic. Furthermore, modifying .bashrc in this way renders Nautilus' "Open in Terminal" menu item useless, as it still opens the home directory instead of the folder Nautilus was viewing.

View 9 Replies View Related

Ubuntu :: Checking If File In /root Directory Exists?

Jun 6, 2010

I want to create a file in the /root directory and then make sure it exists. The following code keeps telling me that the file doesn't exist even though it does.

Code:
#!/bin/bash
echo -e "username=someusername
passwordsomepassword" | sudo tee /root/.credentials
if [ -e /root/.credentials ]; then
echo "File exists!"

[Code]...

[Edit] Added second double quotation mark at the end of "somepassword"

View 5 Replies View Related

Ubuntu Servers :: Increase Size Of Root Directory?

Sep 27, 2010

Is it possible to increase the size of the root directory / on ubuntu 9.10?

View 5 Replies View Related

Ubuntu :: UNR 10.10 - Change To The Root Directory In The Files And Folders?

Oct 13, 2010

I've been using Ubuntu for over 5 years. This time I decided to upgrade UNR to the latest 10.10. I am now running it from USB to try it before installing. Excuse my ignorance, but whatever happened to the Terminal? I cannot find it anywhere! I think this release is not going in the right direction if one of the most important tools in Ubuntu is hidden from an average user.

Also, how do I change to the root directory in the files and folders? or at least to the higher directory structure.I won't be installing UNR 10.10 unless I figure out these BASIC things.

View 2 Replies View Related

Ubuntu Servers :: Apache/PHP Set Root Directory Of Website?

Nov 27, 2010

In my website, I'm putting shared files in a "/global" folder. Both "styles.css" and "library.php" are in this global folder. HTML code seems to be working ok - the following bit works great to pick up a style sheet:

Code:
<link rel="stylesheet" type="text/css" href="/global/styles.css" /> However PHP does not seem to understand my root directory. Using the following does not work:
Code:
include_once("/global/library.php");

I receive a "failed to open stream: No such file or directory" error.Spelling out the entire full path works, like so:

Code:
include_once("/srv/www/mysite/global/library.php");

But this type of code is no good as I may change servers in the future. I have my "DocumentRoot" set correctly in my sites-available file. It seems as if PHP is ignoring it. Is there a config file someplace (htaccess? Local php.ini?) where I should update my root directory for this site only? Or am I following bad form and there's a better way to do this? Relative paths don't seem like the answer here though...

View 5 Replies View Related

Ubuntu :: Sftp Sending Users To Root Directory?

Dec 3, 2010

I have an ftp server and normal login works fine as well as ftps but for some reason sftp sends all my accounts to the root directory of the entire server (not good). Been searching around but can't find a fix.

View 6 Replies View Related

Ubuntu :: Setting Home / Root And Swap Directory

May 15, 2011

I've set a side 80GB on a separate partition, I have 4GB of RAM. I know it will ask me to set /home /root and /swap. How much should I set each one to be with my partition size and RAM.

View 2 Replies View Related

Ubuntu Installation :: Reinstall Grub2 To Root Directory

May 17, 2011

I was dual booting Ubuntu and Windows, had to reinstall Windows, it wiped out grub, need to reinstall it now. Was following this: [URL]

Trying to reinstall grub with:
Code:
sudo grub-install --root-directory=/media/d566e91e-941f-4433-8dea-05d3bffb5669 /dev/sda6
Gives me the following error:
Code:
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are unreliable and their use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.
*edit more info* Ubuntu is installed on /dev/sda6 on a 50GB partition.

Code:
Device Boot Start End Blocks Id System
/dev/sda1 26 56830 456280064 7 HPFS/NTFS
/dev/sda2 * 56830 56843 102400 7 HPFS/NTFS
/dev/sda3 56843 70981 113561600 7 HPFS/NTFS
/dev/sda4 70981 77826 54979585 5 Extended
/dev/sda5 77096 77826 5859328 82 Linux swap / Solaris
/dev/sda6 70981 77096 49120256 83 Linux

Partition table entries are not in disk order So, I didn't want to do anything and screw things up. I want to boot with grub and not MBR. What should I do?

View 6 Replies View Related

Fedora :: Get Root Privileges In Www Directory?

Sep 21, 2010

Tell me how I can I login as root?I want to get root privileges in www directory because I have a web server and I want to put there my site and I can not do that

View 6 Replies View Related

Fedora :: No Space In Root Directory

Nov 25, 2010

I am using fedora 12. I got "no space in root directory" warning from the system. When I went through it, I found many of the space has been occupied by /var/log/httpd/error-log file. So I just deleted the file but when I check the space with "df -h" command. It shows 0% availability. The same problem occurred before but it solved when I restarted the system. But how to regain the space without restarting the system?

View 5 Replies View Related







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