Ubuntu :: Script To Create User, Directories And Site In Apache?

May 24, 2011

I've had a recent idea to have PHP take information from a form, save it to a file, which in turn is read from a local script as root (cron) which will create the user account, proper directories, add the website to the Apache sites, and reload Apache. anyone actually accomplished this before? And if so, can I get some links or some ideas to possibly help me on the process of getting started?

View 1 Replies


General :: Cannot Create User Home Directories?

Jun 4, 2010

Why when I command "useradd -m barth" do I get the error message: "cannot create directory /home/barth"? It only does this when a partition is mounted to /home.

View 14 Replies View Related

Ubuntu Servers :: Apache User_dir Mod And Home Directories - Automatically Set When User Account Created?

May 28, 2010

I want to automaticly set the group ownership of user home directories to a group that the user is not part of. This is so that Apache can be part of this group and can access user public HTML directory, but other users are not able to access in any way the files in the users home directory. What I have seen that works manually is adding the user and then changing the group for the home directory. But I want to automatically set this when the user account is created. WHat I see happening is that when /etc/skel is copied, it automatically sets the group and ownership of everything to the users default group and ownership. I've seen some suggestions on setting permissions, but these don't seem to work because it seems that users are able to cd into a directory and not list it, but if they know the file name they can access the file.

View 1 Replies View Related

Ubuntu Servers :: Administrator User Id Doesn't Seem To Have Root Permissions To Create Directories?

Mar 30, 2010

Need help maintaining permissions across multiple directories. Have Ubuntu 8.04 Hardy Heron. O/S installed, updated and running with no problems.Why is it that my administrator user id doesn't seem to have root permissions to create directories? I am trying to setup hosting 3 separate websites and therefore create 3 separate directories to manage all associated files for the 3 websites. Also, I am attempting to read through the tutorials located at:URL...

View 4 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

Server :: Samba And VSFTPD / Create Folder Rights That Samba And Ftp User Will Have An Access To All Directories?

Oct 20, 2010

I would like to configure an access to folder


for two services : Samba and VSFTPD

How to do it ? How to create folder rights that samba and ftp user will have an access (read/write/delete) to all directories in /fileserver.

My system is CentOS. I`m starting samba and vsftpd like a root (/etc/init.d/vsftpd start etc.)

View 1 Replies View Related

Ubuntu Servers :: Access Web Site When Site's Domain Name / User's Local Server's Domain Name Are Same

Feb 18, 2010

In the office there is a local network with samba+openldap PDC. The local domain name is company.net. The company desided to create a corporate Website on a remote hosting and desided that the site's domain should be company.net which is same as local network's domain name. So now it is not possible to reach that corporate website from within the company's local network because, as I guess, bind9 which is installed on above menioned PDC looks for company.net on a local webserver. Is there a possibility to let people from this local network browse the remote site?

View 1 Replies View Related

Ubuntu Servers :: Apache 2.2 - My Site Cant Be Seen On Lan

Jul 29, 2011

Im trying to just set up my web page so it can be seen on my local home Lan (then Ill try to get it on the internet). I can see the site it on my pc but other network users cant.

They can ping my computer but cant telnet to it on port 6060 (thats the one is set the server up on)

What's wrong with my configuration its mostly the default with a few changes that I hoped would make the site work.

My ip

Here is the sites-available default file


View 7 Replies View Related

Server :: Apache - Cannot Hit Site External

Aug 24, 2010

Only from internal lan. I have secondary IP address added for SSL site, and we are natting that address from that outside. I can hit it if I change my hosts file to that local IP on the server itself, but when using external NAT address it never hits the server. But if you telnet to that external address with port 80 or 443 it works.

Here is a sample of my config with servername and ip addresses changed:

ServerName sample.website.com
ServerAlias sample.website.com


View 1 Replies View Related

Server :: How To Redirect To A Different Site In Apache

Feb 15, 2011

I have httpd server installed and I need to do redirect all the requests from clients thats start with a http://abc.*.* on to [url]. I know this has to be done with Rewrite conditions but Im at a loss coming up with the right condition. this site doesnt have any virtual hosts configured. Currenlty I only can access the apache test page.

View 3 Replies View Related

Software :: How To Host Web Site On Apache

Nov 9, 2010

I have installed Apache on RHEL 5 ( my personal machine)Now i want to host web site on it for my personal use. Please tell me the step how to do this ?

View 3 Replies View Related

CentOS 5 :: After Restarting Apache Site Is Down?

Apr 7, 2011

after restarting Apache site is down?

View 1 Replies View Related

Ubuntu Servers :: Cgi Doesn't Work With New Apache Site Configuration?

Mar 24, 2010

I installed apache on my local machine to test my sites. I have one problem:I created a new site configuration in /etc/apache2/sites-available and enabled it. The problem is that cgi is not working, it just prints the content of the files. (The default location for cgi, /usr/lib/cgi-bin works without problem.)Here is the content of the site configuration file:

<VirtualHost *site1:80>
ServerAdmin webmaster@localhost


View 4 Replies View Related

Ubuntu Servers :: Setup A Home Web For Personal Site Using 11.04 And Apache

Jul 23, 2011

I am trying to set up a home web server for my personal site using Ubuntu 11.04 and Apache. I have set up a user called www and given it FTP access to its home area (/home/www) using vsftpd. I then edited /etc/apache2/sites-available/default and set the DocumentRoot directive to /home/www. When I made a test index.html file in that directory it worked fine. Then I FTP'd to the server (as www) from another PC and uploaded the site files. Now when I try to access the site I get an error 403 (forbidden).Obviously I'm doing something wrong here but I'm not sure what. What should I do to fix this.

View 2 Replies View Related

Fedora Servers :: Apache Will Not Pick Up More Than One Site

Apr 13, 2010

On Fedora 12, I guess this is a security setting. How do I get Apache to pick up more than one website in my document root directory. It only picks up one and denies me permission to view the others on my document root directory. This problem doesn't exist in XAMMP. How do I go about it please.

View 5 Replies View Related

General :: Apache Refuses To Take Into Account Second Site

Aug 27, 2010

I need just like that hand I installed my server on a base DEBIAN configured Apache which works with a site. I want to put to hand a second site and the I have the following problem. Apache refuses to take into account the second site. I activate it with the command a2ensite my domaine.com and I have the following answer.
ERROR module mon domaine.com does not exist
I have the same road as for the first site which works her then I do not understand any more.

View 2 Replies View Related

General :: Cgi Doesn't Work With New Apache Site Configuration

Mar 24, 2010

I installed apache on my local machine to test websites. I have one problem: I created a new site configuration in /etc/apache2/sites-available and enabled it. The problem is that cgi is not working, it just prints the content of the files. (The default location for cgi, /usr/lib/cgi-bin works without problem.) Here is the content of the site configuration file:

<VirtualHost *site1:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/site1/public_html
<Directory />
Options FollowSymLinks
AllowOverride None

View 1 Replies View Related

Networking :: Apache Web Site With Perl Scripts Support?

Apr 28, 2011


<VirtualHost *:80>
ScriptAlias /cgi-bin/ /home1/_sites/teste/site/cgi-bin/
<Directory /home1/_sites/teste/site/cgi-bin/>
Options FollowSymLinks +ExecCGI
AllowOverride None


View 2 Replies View Related

Software :: Setup Apache To Normally Block An IP From Accessing A Site Until That IP Is In A Database/file?

Nov 16, 2010

Is it possible to setup apache to normally block an IP from accessing a site until that IP is in a database/file?More or less, I need a login system that another script can add/remove the IPs and the site can be accessed by only those IPs.

View 1 Replies View Related

Server :: PNG Images Not Displaying From Certain Directories In Apache?

Jan 13, 2011

I have a png file which I put into a user's directory: /~user/file.png This displays OK. When placed in the user's images directory: /~user/images/file.png the file does not display. If I put the file in the global images directory: /images/file.png the file displays OK. Finally if I change the format of the file to a jpg and save it in the user's images directory: /~user/images/file.jpg the file displays OK.

When I look at the Apache access_log and error_log files, there is not even an entry if the png image file is accessed from the user's images directory.

View 4 Replies View Related

Ubuntu :: Create A Directories That Always Stay On Top?

May 6, 2011

have been working how to do this for a while finally getting around to asking....

as a long time windows user I have used a trick of creating directories that will always be the first ones displayed by using an _foldername model, for ex:

A dir
B dir

assuming the four above are directories that is how they are sorted by default in windows and I commonly use this technique for special folders.

for my virtual machines folder in windows looks like this:


where I put base virtual machines in _base and it makes it easy to separate them for all the other folders which are virual machines....SO....

in Ubuntu, I cant figure out a character or way to ensure this type of behavior, for example if I create a _base folder it shows up after a dirs and around the bs etc...

any know a way to create a dir with a special char that will ensure it stays on top?

View 3 Replies View Related

Ubuntu Servers :: Create Directories From A .txt File?

Feb 8, 2011

quickest way to create directories from a .txt or .csv file. A single command would be great but I can use a script as well.

The windows equivalent would be:

FOR /F %n IN (newfolders.txt) DO MKDIR %n

View 7 Replies View Related

CentOS 5 :: Can't Create Directories In Ftp?

Feb 20, 2010

I can log in as root and create directories fine etc But when I ftp or when I try to use the file manager on plesk, I get a permission error when I try to create a directory anyone any ideas why it does this ? Also i have a wordpress blog and when I try to add a new theme the theme wont add, because it is unable to create the folder to put the new theme into so this seems to be teh same issue, ive tryed altering the folder permissions but this doesnt many any difference. is there a way to let my ftp and wordpress be able to create directories ?

View 19 Replies View Related

Fedora Security :: Web Site Blocking For Particular User

Apr 14, 2010

In fedora 12 how can i configure the system such that a particular user can browse only selected web sites.

View 9 Replies View Related

Red Hat :: Create And Configure Set-GID Directories For Collaboration?

Feb 21, 2011

I'm studying for the RHCSA certification (Tautology?) and I'm struggling a bit with this objective Quote:Create and configure set-GID directories for collaborationI've followed the instructions on the deployment guide (except that I created a different directory):
http://docs.redhat.com/docs/en-US/Re...ers_and_GroupsYet, whenever I create a file in this new directory (logged in as a member of the owning group), permissions are set to 644, so other group members cannot edit the files.I checked the umask value and it's set to 0022 and the permissions on the directory are set to 2775

View 3 Replies View Related

Ubuntu :: Made An Error With Chmod - Create User But Don't Allow To See The Other User's Home Folder

Jan 18, 2010

I wanted to create an user but don't allow it to see the other user's home folder so I made chmod 0750 /home/folder and it worked fine so I went ahead and decided to completely forbid access to the root folder and I had the "great" idea to make chmod 0750 /, and now I'm having problems with wine and other applications, in example I used to have a folder in this address but now it's giving me errors and if I try to run some applications I got error "There was an error creating the child process for this terminal"

View 9 Replies View Related

Ubuntu Servers :: Samba - ADS- Automatically Create Home Directories

Mar 22, 2010

At work, using SambaKerberos and ActiveDirectoryWinbindHowto, I joined my machine to our ADS network. Again using ActiveDirectoryWinbindHowto, I modified both common-account and common-auth with these settings.

file: /etc/pam.d/common-account
account sufficient pam_winbind.so
account required pam_unix.so
file: /etc/pam.d/common-auth


According the the doc, when I first log in as a domain user, it should create the home directiroy /home/<whateverdomain>/<theusername>, but it doesn't.

View 2 Replies View Related

Ubuntu :: Create A New Administrative User Of Change The Current User's Group

Sep 3, 2010

This netbook only has a user with non-administrative privs on it and root user but I do not have root's password.Is there a way that I can create a new administrative user of change the current user's group so that it can do sudo commands or have more privs?

View 1 Replies View Related

Security :: Restrict A User Accessing Ftp Site - Which Is Secure Ftp Or Pam

May 7, 2010

I want to restrict a user accessing my ftp site.

1) i can block the user in ftp configuration file

2) i can block the user in PAM or /etc/host.deny

i heard that if pam is denying the user and ftp is allowing the user the user can get the access it means that ftp conf file is stronger than host.deny

View 6 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved