Can't access home/chris folder?

Post Reply
WastedJoker
Member
Member
Posts: 7
Joined: August 8th, 2012, 3:11 pm

Can't access home/chris folder?

Post by WastedJoker »

Hi,

I installed NFS on a newly installed ubuntu 12.04 build but immediately changed my mind and removed it.

Subsequently I can't access /home/chris via putty.

I get error:

-bash: cd: /chris: No such file or directory

I VNC into my server and I can see the /chris folder and I can create a test folder/document but I can't delete.

Since uninstalling NFS, I also do not see any prompt for authentication when trying to mount a drive via Disk Utility GUI. I get a "Not authorized" message.

It's as if removing NFS has screwed with perms etc. What can I do?

This may also be linked to webmin? I can mount the drive in webmin
WastedJoker
Member
Member
Posts: 7
Joined: August 8th, 2012, 3:11 pm

Re: Can't access home/chris folder?

Post by WastedJoker »

So I've started from scratch and am facing the exact same problem.

Installed ubuntu 12.04
Choose openssh and samba packages.
Installed gnome core then vnc

I can connect to a vnc session fine but when I'm following the guide to create a script, I cannot navigate to /home/chris in putty.

Via VNC, I can create /home/chris/MyScripts.

Does having root and user name both being "chris" cause this problem?
When I'm connected to VNC it shows as chris@homenas:2

If I type ls from the start it shows:


chris@homenas:~$ ls
Desktop

If I do the following:


chris@homenas:~$ cd /home
chris@homenas:/home$ ls
chris
chris@homenas:/home$ cd /chris
-bash: cd: /chris: No such file or directory
chris@homenas:/home$

chris@homenas:/home$ mkdir chris
mkdir: cannot create directory `chris': File exists

I can't figure out why ls shows desktop only but I can cd to home :crazy:

Can someone help?
WastedJoker
Member
Member
Posts: 7
Joined: August 8th, 2012, 3:11 pm

Re: Can't access home/chris folder?

Post by WastedJoker »

So I created a new samba user, converted it to a unix user and still cannot navigate to any folder inside /home via putty.
WastedJoker
Member
Member
Posts: 7
Joined: August 8th, 2012, 3:11 pm

Re: Can't access home/chris folder?

Post by WastedJoker »

If I type

sudo -i

I am able to navigate to /home/chris

I do not know if this is standard behaviour? Why can't my chris@homenas navigate but root@homenas can?
User avatar
Ian
Moderator
Posts: 752
Joined: January 1st, 2011, 7:00 am

Re: Can't access home/chris folder?

Post by Ian »

Hi there,

When you installed Ubuntu did you answer "yes" to the prompt about encrypting your home folder?

Ian.
WastedJoker
Member
Member
Posts: 7
Joined: August 8th, 2012, 3:11 pm

Re: Can't access home/chris folder?

Post by WastedJoker »

Hi,

I didn't encrypt the home folder.

I'm really at a loss - in my first attempt following the guide, everything was fine. I installed openssh/samba/vnc/webmin - as you know, part of the vnc instructions was to create a Myscripts folder in /home/xxxx (xxxx being username) and it worked then.

I screwed that up by accidentally deleting some important users via webmin but it was no big deal since I'm working from a blank sheet and it is fairly simple - I just repeated the guides steps again but have hit this weird problem with the home folder twice now despite being absolutely sure I'm not doing anything wrong.
WastedJoker
Member
Member
Posts: 7
Joined: August 8th, 2012, 3:11 pm

Re: Can't access home/chris folder?

Post by WastedJoker »

Resolved it. I installed VNC and once I could see things in a GUi I realised I've been a bit thick. Basically I was trying to find a directory that didn't exist because I was already in it :oops: :oops:
User avatar
Ian
Moderator
Posts: 752
Joined: January 1st, 2011, 7:00 am

Re: Can't access home/chris folder?

Post by Ian »

Ah ok :lol:

Glad you got it solved. I was completely on the wrong track with my thoughts as to what might have happened. :crazy:

Ian.
Post Reply