Firstly i had 777 permissions on that folder (and all files inside), but i don't like it, because everyone can see it and change it.
As Apache runs under user www-data:www-data, i tried to set the group and permissions:
sudo chgrp www-data www -R
sudo chmod 770 www -R
After i done that, http://localhost started to show 403 - Forbidden. It just looks like apache is taken as "other" (from owner, group, other) in words of permissions.
What should i change (permissions, owners, whatever) to keep all files visible and changable only for me (user radek) and executable by apache?
As i can see, there's one Apache process running under root and many others under www-data.
I have installed apache2, mysql, php .. they work great! but I can move, change, paste or anything in the folder sites_available (the folder for localhost) I am really confused right now! because I have used this with xampp in XP and it worked perfectly but I cant make it work in ubuntu! I cant test my php sites!
I am really noob about configuring linux! I think I don't have permission to do anything in that folder because when I try to paste my site there it show a error saying that I am not the owner! When I installed ubuntu first I created a username: "SHPETIM" and this username is administrator and has root permissions but sometimes there are somethings that I cant do!
Sometimes even in Terminal when I type in my password (the only password that I created when I installed ubuntu) it says FAILURE! I dont know what other password it may have that I don't know! I think there is a user with username ROOT and it has another password but since I am noob I dont understand this and I dont know how it works!
I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:
chmod: changing permissions of `whatever': read-only filesystem.
This is my mount table:
[root@localhost ExtHDD]# mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw)
I have a linux test machine which I would like to run a copy of a production webserver. This is a legacy application which does not use a property file for its server name. Throughout the application, the server name is hardcoded (example: open connection to myServer.myCompany.com).
Is there any linux trick which I can use to redirect all requests for a certain host back to localhost? I know in Windows that I can add an entry to the hosts file and have it redirect back to localhost. How do I do this in linux?
Made some network and hardware changes, and now I can't get the mailserver to work. It seems that sendmail can't loop to itself on 127.0.0.1. When I nmap localhost, I find that port 25 isn't open.
Naturally, nothing has changed on my system except for different routing, interfaces, etc.
So the question for sendmail gurus,is where should I be looking?
I'm trying to connect to my linux server but I'm having some major problems. The server had OEL 5 installed and my local pc is running Windows XP. I'm using PuTTy to connect to the server with Xming running on my loacl machine. I login as root and run the following command - export DISPLAY={ipaddress}:0.0I then run xclock and get the following error - Xlib: connection to "{ipaddress}:0.0" refused by serverXlib: No protocol specifiedError: Can't open display: {ipaddress}:0.0The strange thing is that on my bosses pc (who has got almost the exact same setup ie. PuTTy & Xming) is works perfectly.
I've tried searching for this peculiar behavior, but couldn't find a solution that works for it - I have installed Redhat on my system and have a listener running on port 7878. I wanted to check if the port is accessible from a machine on the network, and so i telnet-ed from a remote machine and it worked. Now comes the weird problem - I used the same command (telnet xxx.xxx.xxx.xxx 7878) locally and it was able to telnet. However, if I try to connect using localhost, meaning, "telnet localhost 7878" or "telnet 127.0.0.1 7878", it gives me the following error:
Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused
Here is my /etc/hosts entry:
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
[Code]....
Not sure where the problem is. I expect telnet to connect irrespective of whether i use the IP address OR localhost when i use telnet locally.
I have installed Linux Mint 8 (based on ubuntu). And I have setup a webserver on port 8098.
I can connect to my webserver with http://127.0.0.1:8098, but when I try to connect to http://192.168.1.107:8098 from the same machine or another machine it doesn't work.
How can I get this working? Is there any default firewall settings that I have to change?
I have an application which is separated to several parts (processes) communicating over TCP/IP, using a pre-defined port on localhost.Is this always safe? Can some kind of a firewall (corporate, locally installed, Windows firewall, etc) block this traffic? Or can some user settings in the OS that can block this traffic?The OSes I'm interested in are Windows (XP through 7) and Linux (Ubuntu, RHEL, SUSE)
When I create a folder in the system, it's created successfully Code: [test@localhost localhost ]$ cd test/ -bash: cd: test/: Permission denied drw-rw-r-- 2 test testinstall 4.0K Sep 16 18:51 test
I'm in the process of setting up a new Debian box as a web server. I had apache2 and mysql set up and all of the SSl taken care of. After installing selinux I noticed that my browser and ftp in the terminal wont connect to localhost, other computers on my network can connect to the apache server via a global ip, but it wasn't pulling database info. When I checked, I found that mysql was stopped. When I try to start it, it times out.
After some googling and trying a bunch of setsebools I finally just disabled selinux in /etc/selinux/config. I rebooted and confirmed selinux was disabled, but still the same issues. If it helps the error php throws when trying to connect to mysql is "can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
I have an intel i7 with windows7 64b , then install VMware Workstation and create a machine with Oracle enterprise Linux 64b 5update4, now i want to inatall oracle db10gR2, but this message apears. [oracle@localhost database]$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source)
telnet localhost 143Trying 127.0.0.1...Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'.* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.a login rakesh@sanjiv.com rakesha NO Login failed.i have problem when Installing Courier-imap/imaps with Courierpassd .
I'm running a Debian installation from which I installed zomeminder using Synaptic Package manager. I fixed several issues with deprecated functions and other miscellaneous stuff. Finally have it working fairly well.However, not quite....zoneminder keeps hanging up as a review the captures in iceweasel. I click on the id field in the table and the event view shows up. After I review several, clicking the delete button on each to move forward Iceweasel hang up with the pinwheel spinning. If I completely close out iceweasel I can then start reviewing again.The following error message appears in the apache2/error.log.
[Tue Jul 26 18:59:36 2011] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-644018s.sock ) failed: No such file or directory, referer: http://localhost/zm/?view=watch&mid=1 [Tue Jul 26 18:59:36 2011] [error] [client 127.0.0.1] array (
I have setup a Linux Centos with apache server on it in a home network. Everything works fine. When I access the webserver I put in the address bar the IP address of the server which is 192.168.0.150 and when hit enter, it prompts the page where I have to put login information. The login information is set to: username: admin@localhost.local password: *************
It takes long time for authentication go through and load the page eventhough I am accessing the site in a same home local area network with fast ethernet connection. How can I change the localhost.local to something else like maybe [URL] instead and if I have to change settings in other files as well?
Could someone check this for me? I tried to send mail to localhost (ubuntu server) but when i tried to view it in log file, it gave me this:
Code: xanios@ubuntu:~$ tail -f /var/log/mail tail: cannot open `/var/log/mail' for reading: No such file or directory tail: no files remaining in my /etc/postfix/main.cf: Code: myhostname = ubuntu alias_maps = hash:/etc/aliases
Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?
Problem: permissions for rsync and BackinTime. Setup: Ubuntu 11.04, Two internal HD, #1=main, single boot, #2=backup drive. Question: How do I set up my 2nd HD with correct permissions? Background: I had previously a dual boot XP+10.04 with a 2nd HD formatted as NTFS. With this I was able to use my rsync and backintime to my 2nd HD with no issue. My new set up is EXT4 on both HD.
(I even tried to reformat my 2nd HD as NTFS, but that didnt fix the issue) I followed [URL] to mount the 2nd HD and get permissions. But now when I run backintime i get this error: [E] Error: rsync: opendir "/home/myhome/.ssh" failed: Permission denied (13) I did my requisite reading for a newbie, and am stuck. I ran backintime as root, and it backed up ok. How do I run my user version of backintime? (i.e. How do I fix the permission issue?)
I'm using my Linux (SLES 10) server as a File Server at this point. I need to set File Permissions to nested folders differently to different groups. For example:
homesharedengineering* should be read only for groupA homesharedengineeringadmin should be read & write for groupB Plus read only for groupA homesharedengineeringautocad should be read & write for groupC Plus read only for groupA
I've been using Webmin and Putty to set permissions but Putty only allows me the Default Group, it won't allow me to set several groups on the same directory. Webmin seems to allow me to add multiple groups (Webmin --> Others --> File Manager --> Info & ACL tab will provide extended abilities) but when I add multiple groups, they don't seem to take effect? I'm wondering if my setup at the 'Share' level or at the hierarchy of my folder structure (unix based) needs to be set specifically?
I have a serial ATA hard drive which was installed into a external enclosure and several Linux installed from 2008-09 when connected by eSATA to a 06 Gateway. I then removed that drive and connected it in a different computer to test that PC due to a hard drive failure. So then at the grub boot menu I did select PCLinux 2009 which then ends at "localhost login:".
This 2nd PC is a 2008 ZT 7263Xi-40 and has fairly different type of hardware components which is likely why the run level 5 or graphical login did not complete. Is localhost login: the run level 3 text mode type login then ? But when I did try to enter my user name and wait for a password request, it failed to login in, ( it said login timeout expired ), and some times when I type my user then hit enter, then it does not ask for my password, just times out.
i want to know what is use or benefit of using s and t permission?i have used them but could not understand its uses.please explain me with suitable example.Also tell me about umask command to flag on s and t.