No access to etc directory


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu No access to etc directory
# 1  
Old 05-12-2015
No access to etc directory

Hi, I'm new to this... but I am unable to see /etc, however I can access it via gknautilus... but as superuser I'm getting told no such file or directory via terminal

Last edited by rbatte1; 05-12-2015 at 12:56 PM.. Reason: Captial letters and spelling mainly.
# 2  
Old 05-12-2015
Could you paste the command you are running in the terminal and the output please?
# 3  
Old 05-12-2015
cant see etc - info

Hi I've logged in using my own user in terminal and then used sudo -i to change to root. I now use ls to show directories.... but etc is not accessible as it does not appear, but is accessible using gknautilus. The error is saying no such file or directory when I use cd /etc

I need to run an update patch for ddclient which is in the /etc/ddclient directory I've tried using that path as well and get the same result.

Last edited by rbatte1; 05-12-2015 at 12:55 PM.. Reason: Corrected spelling, upper case, added ICODE tags for commands entered and emboldened other important parts.
# 4  
Old 05-12-2015
Show exactly what you are doing word for word, keystroke for keystroke. Use screenshots if necessary.
# 5  
Old 05-12-2015
info

Okay, step by step:
open terminal
login to root
Code:
sudo -i
root@server:-# cd /etc
bash: cd: etc: no such file or directory
root@server:-#  ls
desktop password.txt
exit
exit
root@server:/home/gary# ls
downloads pictures videos music templates desktop documents


No etc folder at any point
# 6  
Old 05-12-2015
What do you see when you do ls / ? You may be in a chroot somehow.
# 7  
Old 05-12-2015
ls

Code:
root@server:-# ls /
bin dev etc lib media run srv var home


Last edited by Don Cragun; 05-12-2015 at 04:50 PM.. Reason: Add CODE tags.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Restricting directory access in Apache server

Hi all, I have a web site that I'm serving on an Apache server, and it has a number of different folders, but I only want the user to be able to access certain ones -- the majority of them I don't want the user to access. I tried modifying my /etc/apache2/conf.d/security file to do this, but I... (1 Reply)
Discussion started by: Zel2008
1 Replies

2. Red Hat

cannot access a directory with samba

path = /opt writeable = yes ; browseable = yes # guest ok = no valid users = oracle path = /opt/TEST8000/oracle/apps/apps_st/appl/ffcl/12.0.0/reports/US writeable = yes ; browseable = yes valid users = oracle path... (1 Reply)
Discussion started by: rehantayyab82
1 Replies

3. AIX

openssh chroot facility and directory access

Good day. I currently have a request to have sftp access to a specific directory for a user(s). They can have access to that folder only, and nothing below it. Now here is the gotcha that seems to be catching me. The folder they need access to is NOT owned by root, and most of the parent... (0 Replies)
Discussion started by: smurphy_it
0 Replies

4. UNIX for Advanced & Expert Users

Cannot access: No such file or directory

In a directory I have a file called 250SocatSC. When i use the ls -l command I see its size, permissions, etc. Everything seems alright with it but when I try to copy (cp) it or to rename (mv) it I got the following message: "cannot access: No such file or directory". I suspect that has something... (5 Replies)
Discussion started by: 78air
5 Replies

5. Shell Programming and Scripting

how to create and access a directory in the same script using variables

I have a working script that defines the paths using variables which is used to move a rename files that are being archived. Is there a way to create a directory in the path with the date as the name and then reference it when moving the file to it? Here is what I have tried with no luck.... ... (1 Reply)
Discussion started by: Snickyt0310
1 Replies

6. UNIX for Dummies Questions & Answers

Protecting a folder/directory against root access.

A friend and I run a vbulletin forum which recently got hacked. We believe what wound up happening was the attacker gained access to the VPS box and from there elevated their user accounts to admin status on our forums. Obviously if someone gets into our box in the future it'll be a disaster so... (1 Reply)
Discussion started by: fannypack
1 Replies

7. Solaris

User with limited access to one directory

is there a way to create a user and limit him to read,write and execute only in one direcotry. the directory is already exsist and it belongs to dba group. i would like to make this user can't even cd to another directory or even if he can he cant do anything in the other directories. if... (7 Replies)
Discussion started by: q8devilish
7 Replies

8. Solaris

Restricting FTP access for a particular directory

Dear All, I have created a user called "x" who is allowed only to FTP and it is working fine. Here my problem is, I want to give access to a particular directory say for eg:- /dump/test directory. I don't find any option in the useradd command to restrict access to this particular directory only... (1 Reply)
Discussion started by: Vijayakumarpc
1 Replies

9. UNIX for Dummies Questions & Answers

How to access an directory with spaces

I am getting an error while trying to access a directory created with spaces in between, i couldn't able to login into that directory could you please suggest me what should i do to access that directory or if i want to rename that directory what should i do. Directory Name: MH PLR 2005... (1 Reply)
Discussion started by: Ariean
1 Replies

10. Shell Programming and Scripting

failed to access directory thru ftp

Hi all, I am a beginner to unix and ftp too.So i request your valuable comments. Requirement: I want to put a specific file into a server(linux) and under a particular directory path in that server as /caps/details/data/ Problem : I login to that server through the command `ftp... (1 Reply)
Discussion started by: DILEEP410
1 Replies
Login or Register to Ask a Question