Need help with user rights (Permission denied)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help with user rights (Permission denied)
# 8  
Old 11-12-2012
Quote:
Originally Posted by Jotne
I did restore owner by re installing iptraf. Did not help:
Code:
root@server2 /var/log #ls -ld /var/log/iptraf/tcp_udp_services-eth0.log /var/log/iptraf /var/log /var
drwxr-xr-x 18 root root 4096 2012-09-18 10:13 /var
drwxr-xr-x 15 root root 4096 2012-11-12 22:22 /var/log
drwx---r--  2 root root 4096 2012-11-12 22:27 /var/log/iptraf
-rw-r--r--  1 root root   76 2012-11-12 22:27 /var/log/iptraf/tcp_udp_services-eth0.log

Still error:
Code:
awk: cmd. line:1: fatal: cannot open file `/var/log/iptraf/tcp_udp_services-eth0.log' for reading (Permission denied)

I do now a lot about security.
This is a monitor only server. No user than me will ever log in.
OK. Now that you're back to a sane starting point, since ls doesn't show that any extended security controls are in use on these directories, the following should loosen security controls enough to allow everybody to read /var/log/iptraf/tcp_udp_services-eth0.log:
Code:
chmod 755 /var/log/iptraf

I will take your word for it that you know how to safely handle security issues. In you first message you said that you didn't know who was running the script that is doesn't have permission to read this log file (so you added a call to whoami to see who it was). The fact that it showed that it was being executed by user-ID nobody means that it was likely started by a request from a remote system. You are changing the system's security features so that anyone on the same network as this server can read any log file in that directory. I'm not familiar with the iptraf application, but IP traffic being logged on a server need not originate on that server. Just because you're the only one who logs on to that server doesn't mean that IP traffic can't contain data from other users, and doesn't mean that users on other systems on your network won't be able to read sensitive information from log files in that directory.
# 9  
Old 11-13-2012
Thanks, it works Smilie

By who running the script, I meant I do not know what linux process, not what physical user....
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Permission denied

Trying to get date into the txt file. It says Permission denied. echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt exec 2>> /tmp/systemd_suspend_test_err.txt if ; then # Do the thing you want before suspend here echo "we are suspending $(date +%I:%M:%S_%D)." elif ;... (5 Replies)
Discussion started by: drew77
5 Replies

2. Shell Programming and Scripting

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

3. Red Hat

Permission denied

Hi guys im new to this db i have a small prob while installing websphereportal6.1i think i was installed succesfully but the error im getting is while starting server. check this out # ./serverStatus.sh -all Error loading: /usr/wps61/AppServer/java/jre/bin/classic/libjvm.so: cannot... (1 Reply)
Discussion started by: varma917989
1 Replies

4. UNIX for Dummies Questions & Answers

changing password with sudo user " permission denied"

HI All, I am using solaris i created a user adam and updated his permissions in vi sudoers file as follows adam ALL=(ALL) NOPASSWORD: ALL ........... when i create user by logging as sudo user . $ sudo useradd -d /home/kalyan -m -s /bin/sh kalyan sudo: not found ... (6 Replies)
Discussion started by: kalyankalyan
6 Replies

5. UNIX for Advanced & Expert Users

Permission denied, but user is owner and has group ownership too

Folks, I have a problem with a particular file, that seems to have some kind of lock on it, that takes around 1 hour approx to timeout. I have used lsof and nothing has an open file handle on it, yet I cannot open it. My user/group owns the file and I can create edit/delete files in... (6 Replies)
Discussion started by: scottrus
6 Replies

6. UNIX for Dummies Questions & Answers

Permission denied

I would like to copy data from local mechine to cluster. Basically, I typed scp -r DVD/ acount@cluster:/ it shows Permission denied. Could anyone please give me a clue to write permission on cluster, please? The poperty of where on cluster I'd like to put is drwxr-xr-x Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies

7. UNIX for Dummies Questions & Answers

Why do I keep getting .:Permission denied?

I'll start off by saying that I know very little about Unix - however, I do know that I have a .profile file in my home directory, and that I should be able to invoke it by typing . profile. However, when I do this for ANY .filename, I get ".: Permission denied". I'm pretty sure that there is... (12 Replies)
Discussion started by: bbersani
12 Replies

8. UNIX for Advanced & Expert Users

Permission denied

Hi, I can not execute a .env file $ . /Data/oracle/d03/mydbora/8.0.6/MYDB.env -bash: /Data/oracle/d03/mydbora/8.0.6/MYDB.env: Permission denied Even if : -rwxrwxrwx 1 oracle dba 2903 Mar 5 2007 /Data/oracle/d03/mydbora/8.0.6/MYDB.env Please help. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

9. UNIX for Dummies Questions & Answers

./ Permission Denied.

Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 Replies

10. UNIX for Dummies Questions & Answers

permission denied??

i'm trying to set up my internet connection and i was told i need to edit the file /etc/ppp/pap-secrets but i get a permission denied message...why?? (6 Replies)
Discussion started by: justchillin
6 Replies
Login or Register to Ask a Question