Home > How To > How To Access Root Folder In Ubuntu

How To Access Root Folder In Ubuntu


We use # includes to substitute the appropriate text. # # You can modify the messages' appearance without changing any of the # default HTTP_.html.var files by adding the line: # Hot Network Questions Is there any known limit for how many dice RPG players are comfortable adding up? But now I have a new problem... I thought about the chroot command, but it seems it just runs the specified command, considering the specified directory as the root directory. have a peek here

You need to give execute permission to /root/chrt.sh Code: chmod +x /root/chrt.sh I forgot to add that step in my last post. MSYS2_PATH="/usr/local/bin:/usr/bin:/bin" MANPATH="/usr/local/man:/usr/share/man:/usr/man:/share/man:${MANPATH}" INFOPATH="/usr/local/info:/usr/share/info:/usr/info:/share/info:${INFOPATH}" MINGW_MOUNT_POINT= if [ -n "$MSYSTEM" ] then case "$MSYSTEM" in MINGW32) MINGW_MOUNT_POINT=/mingw32 PATH="${MINGW_MOUNT_POINT}/bin:${MSYS2_PATH}:${PATH}" PKG_CONFIG_PATH="${MINGW_MOUNT_POINT}/lib/pkgconfig:${MINGW_MOUNT_POINT}/share/pkgconfig" ACLOCAL_PATH="${MINGW_MOUNT_POINT}/share/aclocal:/usr/share/aclocal" MANPATH="${MINGW_MOUNT_POINT}/share/man:${MANPATH}" ;; MINGW64) MINGW_MOUNT_POINT=/mingw64 PATH="${MINGW_MOUNT_POINT}/bin:${MSYS2_PATH}:${PATH}" PKG_CONFIG_PATH="${MINGW_MOUNT_POINT}/lib/pkgconfig:${MINGW_MOUNT_POINT}/share/pkgconfig" ACLOCAL_PATH="${MINGW_MOUNT_POINT}/share/aclocal:/usr/share/aclocal" MANPATH="${MINGW_MOUNT_POINT}/share/man:${MANPATH}" ;; MSYS) PATH="${MSYS2_PATH}:/opt/bin:${PATH}" PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/share/pkgconfig:/lib/pkgconfig" ;; share|improve this answer edited Oct 6 '10 at 10:34 answered Oct 5 '10 at 20:33 Omnifarious 391211 @Omnifarious I need user1 not to be able to see the rest Code: if [ $UID -eq 500 ] then cd /jail/$USER fi It works without any issue ....Home directory changes to /jail/don when I ssh to the system as user don. http://www.linuxquestions.org/questions/linux-newbie-8/chroot-error-cannot-change-root-directory-to-jail-operation-not-permitted-875623/

How To Access Root Folder In Ubuntu

That is where you will set your DocumentRoot. Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest Here it is: Code: # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file.

C:\Users\WhateverUser\.bash_profile) with the following contents: export HOME="C:\my\projects\dir" cd "$HOME" # if you'd like it to be the starting dir of the git shell share|improve this answer answered Jun 14 at 10:14 What version do you have? Started by irouch , Sep 17 2004 10:24 PM Please log in to reply 1 reply to this topic #1 irouch irouch Members 1 posts Posted 17 September 2004 - 10:24 How To Access Root Directory Android Code: #tail -5 /etc/profile if [ $UID -eq 500 ] then /tmp/call-script fi #cat call-script.c Code: #include #include #include #include int main() { setuid( 0 ); system(

ORIGINAL_TMP=$TMP ORIGINAL_TEMP=$TEMP #unset TMP TEMP #tmp=$(cygpath -w "$ORIGINAL_TMP" 2> /dev/null) #temp=$(cygpath -w "$ORIGINAL_TEMP" 2> /dev/null) #TMP="/tmp" #TEMP="/tmp" case "$TMP" in *\\*) TMP="$(cygpath -m "$TMP")";; esac case "$TEMP" in *\\*) TEMP="$(cygpath -m How To Open Root Folder In Ubuntu It would be easy to get it wrong and mess things up bad. If it is not in the man pages or the how-to's this is the place! How to react?

This incident will be reported Is there any known limit for how many dice RPG players are comfortable adding up? How To Access Root Directory In Linux Soji Antony View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by Soji Antony 05-21-2011, 01:26 AM #8 vkvs LQ But I want to change the root directory from /var/www to something else, for local development purposes. A guy scammed me, but he gave me a bank account number & routing number.

How To Open Root Folder In Ubuntu

This stores files recovered in filesystem repair operations. check this link right here now Code: #getfacl /etc/profile getfacl: Removing leading '/' from absolute path names # file: etc/profile # owner: root # group: root user::rw- group::r-- other::r-- The above results shows that root is the How To Access Root Folder In Ubuntu DistroUbuntu 8.10 Intrepid Ibex Re: Can't change Apache's DocumentRoot Hi...can you post your apache2.conf file here to see how you have it configured? Ubuntu Root Folder Permissions Changing them to 770 and adding select users to the root group will let those users create, access, and modify files in /root.

It installs bash. http://culturahq.com/how-to/can-39-t-access-router.html Last edited by Soji Antony; 04-18-2011 at 10:34 AM. shawley View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by shawley 04-18-2011, 09:41 AM #4 Soji Antony Member Registered: Jul 2010 Posts: Solving this issue with permissions means to modify the rest of world, rather then modify user1. How To Get Into Root Directory In Ubuntu

Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Please take a look. Also, what does /var/log/apache2/error.log say (cmd: less /var/log/apache2/error.log) Cheers - Kryptikos -------- This is Linux country...on a quiet night you can hear Windows reboot. Check This Out Did a thief think he could conceal his identity from security cameras by putting lemon juice on his face?

Can I use that to take out what he owes me? How To Go To Root Directory In Ubuntu Terminal Join our community today! Also using nautilus by Pressing Super+F2 key and typing gksu nautilus Changing permissions of root folder.

Are there continuous functions for which the epsilon-delta property doesn't hold?

Hi shawley Quote: You could remove all the paths from PATH and alias only the command you want him to use. When I run it on Apache Tomcat 7, I have to type "http://localhost:8080/MYPROJECT" but I want it to run on the root "http://localhost:8080/" how can I set the deployment path to If you really want something more strict than permissions give you, then looking into setting up selinux so you can restrict them further. Ubuntu Access Root Folder Terminal How do we assign an initial value to a lookup field in sharepoint add in?

Is my approach correct to get a jailed shell using /etc/profile file ? The user don should get a home directory /jail/don instead of /home/don when he login via SSH (So that he will not able to see any other files/directories on the system) All I did was add the "DocumentRoot" line. this contact form But there is sort of a way to get something like what you're asking for, kind of.

Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ Created a directory /jail & copied don's home,/lib & /bash directoris to /jail. I have heard that this is usually done by changing the root directory for the user (and setting it to the user's home directory), however I couldn't find the way to If you have the gksu package installed, you can run gksudo nautilus to open a root-owned file browser window.

Open the registry editor. Every distro has a unique way of implementing apache2 (a pet peeve IMHO but something we live with). Search this Thread 04-18-2011, 09:02 AM #1 Soji Antony Member Registered: Jul 2010 Posts: 54 Rep: chroot error "cannot change root directory to /jail: Operation not permitted" Hi I Notice there is no $HOME variable Thanks UPDATE: So, $HOME is what I need to modify.

I want ~ to be elsewhere on my hard drive. The main default configuration is aptly enough called "default". Because, if you change the permission of root's home and you delete or modified some crucial file there, This may result in totally un-usable system. BTW try to add setting of HOME to the end of the profile.

  • © Copyright 2017 culturahq.com. All rights reserved.