No access to etc directory


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu No access to etc directory
# 8  
Old 05-12-2015
Try ls -ld /etc to show the folder itself instead of its contents, maybe it has weird permissions.
# 9  
Old 05-12-2015
Are you running selinux?
# 10  
Old 05-12-2015
no i don't believe so, its abuntu 12-4 tls plus the latest packages. And sentora control panel installed.... nothing else
# 11  
Old 05-12-2015
I can't find any "abuntu" operating system. selinux is an option in many distributions, however.

Try ls -ld /etc to show the folder itself instead of its contents, maybe it has weird permissions.
# 12  
Old 05-12-2015
result

that gave the following:

Code:
root@server-# ls -ld /etc
drwxr-xr-x 138 root root 12288 may 11 17:20 /etc


Last edited by Don Cragun; 05-12-2015 at 04:52 PM.. Reason: Add CODE tags and remove extraneous spaces in ls output permissions field.
# 13  
Old 05-12-2015
ls -l /etc
# 14  
Old 05-12-2015
Result was the following:
Code:
-rw-r--r--  1 root root     1260 May  2  2011 ucf.conf
drwxr-xr-x  3 root root     4096 May 10 12:06 udev
drwxr-xr-x  3 root root     4096 Feb 13  2013 ufw
-rw-r--r--  1 root root      326 Aug 17  2011 updatedb.conf
drwxr-xr-x  3 root root     4096 May 10 12:03 update-manager
drwxr-xr-x  2 root root     4096 May 10 12:03 update-motd.d
drwxr-xr-x  2 root root     4096 Sep 10  2012 update-notifier
drwxr-xr-x  2 root root     4096 May 10 12:06 UPower
-rw-r--r--  1 root root      572 Mar  7  2012 usb_modeswitch.conf
drwxr-xr-x  2 root root     4096 Feb 10  2012 usb_modeswitch.d
drwxr-xr-x  2 root root     4096 Feb 13  2013 vim
lrwxrwxrwx  1 root root       23 May 10 10:58 vtrgb -> /etc/alternatives/vtrgb
drwxr-xr-x  2 root root     4096 May 10 12:30 webalizer
-rw-r--r--  1 root root     4496 Feb 11  2012 wgetrc
-rw-r--r--  1 root root     1343 Jan  9  2007 wodim.conf
drwxr-xr-x  2 root root     4096 May 10 12:03 wpa_supplicant
drwxr-xr-x 10 root root     4096 Feb 13  2013 X11
drwxr-xr-x  5 root root     4096 May 10 12:03 xdg
drwxr-xr-x  2 root root     4096 Feb 13  2013 xml
drwxr-xr-x  2 root root     4096 May 10 12:05 xul-ext
lrwxrwxrwx  1 root root       12 May 10 12:25 zpanel -> /etc/sentora
-rw-r--r--  1 root root      349 Jan 30  2012 zsh_command_not_found

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