Ubuntu :: Fix Path To /home Directory ?

Feb 3, 2010

I thought i'd set up the partitions correctly when i installed ubuntu, with a 15 gig "/" partision and a 45 gig "/home" and a 3.8gig "swap"

I was wrong i somehow misplaced the /home partition, and therefore didn't install it

I found this out about 4 days ago as i was running though video tutorial and realized i didnt have it setup correctly afterall

So... i did some research and found this site...[url] and i found something that seemed to work for various people, i deleted the 'now' windows partition and so i had this:

However i unmounted the /home folder following the instructions without realizing that i didnt have permissions to mount the /new home partition as it is not in the extended ubuntu 9.04 linux partition and i have no rights to it

So my question is, how do i fix the path to the /home folder (original) in ubuntu so that i can start over and do this correctly (ie; resize the extended partition and add the /newhoe directory/patition to ubuntu)

I realize that i can use a sudo command before lines to run su commands that are blocked in ubuntu, which is how i screwed up =

I cannot use anything in the menu as all links to programs are dead, i can run the add app, but it cannot install as the install folders are "not there"... i can see them in the terminal so i know my data is there and i can run the live disc to salvage it, but i cannot see it while ubuntu is loaded

Note; i have not restarted the computer and i don't know if this will block ubuntu from restarting either, so i need to fix via terminal, before i can do anything else, like letting the laptop rest.

View 5 Replies


ADVERTISEMENT

Ubuntu Servers :: Set Home Directory Path Different From LDAP's Home?

May 24, 2011

I need to specify a different path to home directories on a particular server than what LDAP contains for the users, besides using a symlink. E.g. "/Users/jdoe" vs "/home/jdoe" I don't want to change the actual LDAP attributes, just want a particular server to point them in the right direction (Ubuntu 10.04).

I'm assuming it's something I could probably set in pam configurations?

View 1 Replies View Related

General :: Testing Home Directory Scripts By Setting $HOME To The Location Of The Test Directory

Apr 20, 2010

I have an interdependent collection of scripts in my ~/bin directory as well as a developed ~/.vim directory and some other libraries and such in other subdirectories. I've been versioning all of this using git, and have realized that it would be potentially very easy and useful to do development and testing of new and existing scripts, vim plugins, etc. using a cloned repo, and then pull the working code into my actual home directory with a merge.

The easiest way to do this would seem to be to just change & export $HOME, eg

cd ~/testing; git clone ~ home
export HOME=~/testing/home
cd ~
screen -S testing-home
# start vim, write/revise plugins, edit scripts, etc.
# test revisions

However since I've never tried this before I'm concerned that some programs, environment variables, etc., may end up using my actual home directory instead of the exported one. Is this a viable strategy? Are there just a few outliers that I should be careful about?

View 1 Replies View Related

Ubuntu :: Home Folder Icons Don't Update When Change The Home Directory

Sep 22, 2010

I have a dual-boot macbook with an OS X partition and an ubuntu partition. When I first installed ubuntu, I changed my home folder to my OS X home directory to synchronize all my files from both. My home directory is now /media/sda2/Users/username/. In a regular home folder, the icons for Documents, Music, Pictures, Movies, etc. are different (not just with emblems, but actually different icons). But when I changed my home folder, these subfolders' icons stayed the same as regular folder icons and I can't figure out a way to change that default setting. I know how to change the icons for each folder manually, but these changes don't appear everywhere (i.e. nautilus, places, etc). Furthermore, every time I change my icon theme, I would have to manually reassign icons for these folders. Is there a way to globally change the folder icons for these folders?

View 2 Replies View Related

Fedora :: Using SSH - Could Not Chdir To Home Directory /home/adahaj: Permission Denied

Jul 21, 2009

I have a strange problem when I do SSH to a FEDORA9 based Linux Server.

[Code]....

When I login using "adah" username in TELNET I am automatically directed to my home directory at location "/media/disk-1/home/adah". But when I use SSH to login using the same username I get the following message Code: Could not chdir to home directory /home/adahaj: Permission denied

View 7 Replies View Related

General :: 'Could Not Chdir To Home Directory /home/[user]: Permission Denied'

Jan 6, 2010

I have a secondary disk which holds a /home directory structure from a previous install of Linux. I installed a new version on a new primary drive and mounted this secondary drive as the new /home. Problem is, even though the users are the same names and I can access the home directories for the users, I cannot login directly to their home directories, as I get the following error: -

Code:

login as: [me]
[me]@[machine]'s password:
Last login: Wed Jan 6 18:34:33 2010 from [machine]
Could not chdir to home directory /home/[me]: Permission denied
[[me]@[machine] /]$

Now, since the usernames are correct and the users are in the passwd file with the correct home directory paths, could it be user ID's that are different or something else? It's not as though I cannot access the home directories for the users, simply that I cannot log directly into them from a login prompt.

View 14 Replies View Related

General ::anything Special About Home Directory Before Users' Home Directories Are Stored There

Jun 19, 2010

Is there anything special about a home directory before users' home directories are stored there, or is just as typical as any other "empty" folder?Let me just cut to the chase, but please no ear ringing about the folly of messing around as root, particularly with directories at root level. I know it's considered stupidity, but I deleted my home directory.

Is there an easy way to restore a working home directory? I tried copying /etc/skel under root, but I'm not sure what a home directory should look like once it has been restored. Besides . & .., there were .screenrc & .xsession in my home directory when I copied /etc/skel. Are these files suppose to be in "/home" or "/home/~" or both?

View 10 Replies View Related

Ubuntu :: Cannot Mount Unencrypted Directory To Encrypted Home Directory With Fstab

Aug 26, 2010

I have Ubuntu Karmic. I chose to install with an encrypted home directory. Recently I got a warning that I only had 2GB of drive space left. This is mostly because of my videos. So I went and bought a new hard drive and partitioned it and made 1 ext4 partition and copied my videos all to the new hard drive. I added a line in my fstab to mount the new hard drive to ~/videos, but when I reboot the computer, there is a screen saying something like "error mounting /home/me/videos, press S to skip or something else to reboot". If I press S to skip, then when my system comes up there is a video directory but it's empty because my other hard drive didn't get mounted. I can run sudo mount /dev/sdb video/ and it will mount fine and I can see all my videos, so why can't fstab mount it? Does this have something to do with my encrypted home directory?

View 14 Replies View Related

Ubuntu Security :: HOME - /bin Location In PATH ?

Dec 1, 2010

I installed Ubuntu 10.04 only be dismayed to find ${HOME}/bin FIRST IN THE PATH. I blogged about it at my blog (I sudo an xterm rather than just sudoing to get a different background for the sudo'd xterm): [url]

I agree that some new user should probably not be logging on as root. But if the replacement for 'ls' is in their ${HOME}/bin/ the sudo'd shell inherits the same PATH, umask, and everything else! In general I take a dim view of a sudo only way of doing things. It seems to cause more problems than it solves for disciplined, knowledgeable users. In the case of Ubuntu it caused me to create a /root folder for root to reset the umask back from 077 which is what I use over to 022 which is what root should use. The /root/.profile of course made sure there is no /home/me/bin in the sudo'd PATH. It didn't matter because somebody is not just SETTING the file perms and is instead calculating them based off of modifications to the umask. JUST SET THEM! I ran into a problem with GRUB getting things fouled up because I was having to remove the new kernels and instead of using the command line option (much prefereable) used Synaptic Manager instead: [url]

In fhe case of an infection living in a user's file space you really should want to go in to clean it out as some other user than the user that is infected. Having said that the hackers seem to be going for the whole enchilada right off the bat. A WARNING is in order here. DO NOT USE A ROOT ACCOUNT OR SUDO FOR NORMAL TASKS! But please put ${HOME}/bin last in the PATH or preferably don't even put it in the PATH at all. Let users add it themselves if they want it. Also once hackers figure out that hijacking a sudo tty (from what I just read else-where here I would say several hackers are working on doing that right now - sendmail my ****) is a dandy way of doing things you really will need to provide for ways of cleaning a user infestation out by going at it some other way than through that infected user. A lot of Ubuntu users have only one login account, the one they created when they set the machine up.

View 9 Replies View Related

Slackware :: Set Java Home Path

Apr 24, 2011

I installed an editor that works fine for root, but for user produces this error.

Code:

How does one set this thing?

View 8 Replies View Related

Ubuntu :: Cannot Add A Directory To The PATH

Dec 8, 2010

After trying to add a directory to the PATH, I get the message that the folder doesn't exist.

Code:

View 4 Replies View Related

Ubuntu :: Add Directory On Media To Path?

Feb 13, 2010

I need to add a directory to path in ubuntu. The directory I want to add is on Windows drive .If I try to add a directory , lets say "some directory" to path , then on adding I get following error. The directory resides on HD.

user@user-desktop:~$ PATH=$PATH:/media/New Volume/some directory/javacc-5.0/bin
bash: Volume/some: No such file or directory.
------------------------------------------------------------------------------------------------------------

[code]....

View 1 Replies View Related

Ubuntu Servers :: CD Into Directory Of Path Available

Apr 13, 2010

I was wondering if we could cd in the directory of the PATH variable. For example, if I type in echo $DISPLAY. It will give me /tmp/launch-3ee4fg/org.x:0
Is there any way that I can just take the value '/tmp/launch-3ee4fg/' from the output of $DISPLAY and exclude out the filename to the end of the command. I tried using the read command and the IFS variable..apparently IFS does not recognise / I guess.

View 2 Replies View Related

OpenSUSE :: Java Real Home Path Lost

Jan 27, 2010

I accidentally messed my Java home path with this command:
export JAVA_HOME=
And now I don't know what the real path is.

View 2 Replies View Related

Ubuntu :: Directory Structure - What Does The Dot Mean Before Freevo In The Path

Mar 28, 2010

I'm trying to configure Freevo and can seem to find this directory "~/.freevo/local_config" .

My question is what does the Dot mean before freevo in the path ? and where is it pointing to I'am looking in the home directory but not seeing it ?

View 3 Replies View Related

Ubuntu :: Export PATH To Adb Directory Through Bashrc?

Feb 25, 2011

I,m having a rough time getting the terminal environment to recognize my android debug bridge path (which is set in a separate hdd) I used to paste this in my bashrc, but then found that it would make the env system bonkers whenever i attempted sudoing with an option:

# Android Debug Bridge (ADB) sdk path
alias sudo='sudo env PATH=$PATH'
export PATH=${PATH}:/media/Disk/Linux/Android/sdk/platform-tools/
The "alias" line was the one making me have a rough time with env.
Now that i got rid of it everything is well but adb's path isn't exported anymore.

[Code]...

View 3 Replies View Related

General :: Access Directory Outside Of Home Directory?

Apr 13, 2010

I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder). How can I navigate into this directory using Terminal.app to run the programs that reside there?

View 7 Replies View Related

Ubuntu :: MATLAB Installation - Adding Directory To $PATH

May 27, 2010

I've followed the guide here for installing MATLAB. The installation completed successfully, however, the launcher created doesn't launch MATLAB as MATLAB isn't installed anywhere pointed to by $PATH. What's the best way of solving this - adding MATLAB's directory to $PATH (in which case how do I go about doing so), or (re)installing MATLAB to somewhere already in $PATH?

View 2 Replies View Related

General :: Setting PATH Variable To Bin Directory In Ubuntu

Feb 18, 2011

I installed java in my pc by running the following on the shell
./jdk-6u24-linux-i586.
I need to set the path to the bin directory and also a new environmental variable JAVA_HOME.

View 2 Replies View Related

General :: Specifying A Directory Path In Python?

Nov 20, 2009

I'm trying to write a script in python to extract data from maillogs in gz format. I wrote a shell script but i now want to do this in python, as thats the preferred method where i work. anyway does anyone know how to specify directory paths for example the maillogs exist in /var/log so i want the script to go to that directory would LOG_DIR="/var/log/" work?

View 1 Replies View Related

General :: Put A '/' In The Directory Path With Apache?

Nov 8, 2010

I am using Apache/2.2.3 on Centos 55. I am having an issue that is pretty strange to me. Whenever I navigate to a url on my webserver from outside my network. I have to put a '/' in the directory path for example When I type in: mydomain.com/directory1 it winds up redirecting to the hostname for my server HOWEVER When I type in mydomain.com/directory1/ it works, since I am adding the '/' at the end of the path. I suspect it is because I do not have my FQDN set up correctly.I did not have this issue when I was using Ubuntu 10.04 , I suspect because Ubuntu automagically set this up for me. Is there a particular way I need to setup my FQDN in centos to get this to work properly? I have tried going into /etc/hosts and adding my FQDN in there, but I do not think I did it properly, is there a particular way the /etc/hosts file needs to be setup?

View 1 Replies View Related

Software :: Zip - Excluding Whole Directory Path ?

Sep 12, 2010

I'm trying to compress with zip for linux utility a file

Is need to be done (example):

But I would like that in the zip file there is only one file: source.file instead the whole directory path /usr, /src,... and the file.

I can't move up to the directory /usr/src/ to execute the command.

I must do this from / directory.

If this possible? I Windows systems even if I do the zip C:directory1directory2source.zip C:directory1directory2source.file, it does what I need: a Zip in directory2 with just the file source.file.

I've been looking up the man page for zip, but did not find anything useful, tried, -j, -D with no success.

View 1 Replies View Related

Programming :: Adding Directory To The Path?

Apr 2, 2009

I have made the installation of Qt4 in my Fedora/MacBookPro. It also got a first compiling and running a simple program. The point is that for the compiler to run I need to point out every time where the bin is located, as that:

$ /home/threader/kinetic/bin/qmake -project

I have tried the following, but it still doesn't work:

# script
#-----------------------------------------------------------#
# /etc/bashrc or /home/threader/.bash_profile
# config to Qt compiler

[code]....

View 5 Replies View Related

Slackware :: PATH -13.0: No Such File Or Directory

Apr 21, 2010

I am working on getting my software packages installed on my fresh Slackware64-13.0 installation. Some (but definitely not all) of my executables are unable to be run.

I understand what PATH is for. It is for locating files, folders, executables in those directories when running from a Terminal window.

So, for example, I have just installed Cisco VPN Client for Linux, and it is the strangest thing. I should have access to this. I must not be understanding something here. Does anyone have any idea why this is not working for me? I have put in an example of what I am talking about.

I have no idea why this is not working.

View 9 Replies View Related

Programming :: Getting Directory Names From A Given Path In Bash?

Apr 11, 2009

I am programming in bash and really stuck finding directory names. I have a script to find all the .php files on my / partition which will return the whole path. Is there a way to print directory hierarchy with all those values leaving out the forward slashes.

View 10 Replies View Related

Programming :: Return The Directories In Subject Dir, But Only The Directory Without Path?

May 21, 2010

Very new to this shell scripting/Linux scripting.

subject_dir=/labs/tricam/MERIT/MERIT_0*
for subject in `ls $subject_dir` ; do
if [ ! -d $subject_dir/$subject/feat/glm2010/doublegz/SRRTA.feat ] ; then

[code]....

View 1 Replies View Related

General :: Shell Script - Use Variable In A For Loop With Directory Path?

Jan 19, 2011

I modified files in several directories, and need to run a diff on the backup I created before modifying the file.

I'm trying to compose a simple shell script to speed up the task, but getting a syntax error.

Here is what I have:

for i in DIR1 DIR2 DIR3 DIR4 DIR5 do;
diff /maindir/subdir/subdir/$i/filename.txt.old /maindir/subdir/subdir/$i/filename.txt;
done

I know the paths are valid, and if I run just the diff command with the actual DIR1 instead of $i it works.

View 2 Replies View Related

General :: Command For Finding File / Directory From Current Path

Apr 30, 2010

I am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below:
1) cd /
2) find . iostream.h ( finds the file / directory from the current path)
It shows No such File or Directory

View 7 Replies View Related

General :: Lyx: File Name Error The Directory Path To The Document Cannot Contain Spaces

Sep 9, 2009

trying to write my thesis in Lyx 1.6. It works fine on my windows laptop at home but Not on my work computer. The problem is, when i try to view it in pdflatex it comes with with: Lyx: file name error The directory path to the document cannot contain spaces

View 1 Replies View Related

General :: Present Working Directory Path Display - RHEL5

Jun 23, 2011

need to know, how we can display the whole (till current directory) path in below highlighted way. normally it shows only the name of current working directory after the server name.

View 3 Replies View Related







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