maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   need some help any idears -- x terminal newbie (https://talk.maemo.org/showthread.php?t=42814)

buxz777 2010-01-31 01:33

need some help any idears -- x terminal newbie
 
hi there

having a bit of trouble , i have a file i wish to access in my documents folder on the n900 mass memory

iam root when trying to access it

ive been trying the following commands to get into my documents

cd MyDocs
cd .documents

i even tryed

cd/MyDocs
cd/.documents

iam a bit of a newbie with x terminal and i just keep getting the mesasage

''cant cd to MyDocs''

iam trying to learn and have sat here for half an hour to an hour on google and the n900 and i just cant seem to cd anywhere am i missing something here

sorry to bother you with something probably so simple but iam scratchinh my head a bit here

thanks in advance peeps

Bratag 2010-01-31 01:40

Re: need some help any idears -- x terminal newbie
 
cd /home/user/MyDocs

fred123 2010-01-31 01:41

Re: need some help any idears -- x terminal newbie
 
From xterm the path to documents is /home/user/MyDocs/.documents/

buxz777 2010-01-31 01:47

Re: need some help any idears -- x terminal newbie
 
Quote:

Originally Posted by Bratag (Post 503253)
cd /home/user/MyDocs

cd /home/user/MyDocs not found

is what comes up when i type that

buxz777 2010-01-31 01:48

Re: need some help any idears -- x terminal newbie
 
Quote:

Originally Posted by fred123 (Post 503254)
From xterm the path to documents is /home/user/MyDocs/.documents/

when i type this command i get permission denied

when i type whoami it says iam root so not sure what the problem is now

any idears

its all appreciated thankyou

fred123 2010-01-31 02:10

Re: need some help any idears -- x terminal newbie
 
Sorry you need to install rootsh from app manager its in system as far as I can remember, first thing I installed 2 weeks ago.

buxz777 2010-01-31 02:12

Re: need some help any idears -- x terminal newbie
 
yep ive got that fred same as you 1st thing i installed mate :-)

buxz777 2010-01-31 02:15

Re: need some help any idears -- x terminal newbie
 
right when i type sudo rootgain it asks me for a passowrd

ut oh lol not having alot of luck am i

if i type root it lets me become root but its giving me the permisson denied so it must be giving me limited access with the root command but when i use the sudo rootgain it asks for a password

------------------EDIT----------------------

i have figured it out

i closed xterm down when asked for password , next time i ran sudo gainroot it didn ask for a password and the sheel was enabled :-) this meant i could use the command

cd MyDocs

and i jumped to that foler :-) happy days :-)

my problems stemmed from me not having full access , i used the command root , instead of sudo gainroot , this gives more privelages and lets me jump about etc

thankyou for all your help

pps
just incase is there a default password for sudo

Mattside 2010-01-31 02:18

Re: need some help any idears -- x terminal newbie
 
This is what I did...

Open X Terminal

type in:

sudo gainroot

Then it should take you right to the /home/user directory. From there type:

cd MyDocs/

Hopefully it'll work for you.

fred123 2010-01-31 02:22

Re: need some help any idears -- x terminal newbie
 
Not sure what to suggest now other than the inevitable reboot. I can cd into any folder without any problems.

I think I need to sleep now, hope you can find a solution.


All times are GMT. The time now is 17:03.

vBulletin® Version 3.8.8