Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - akhasis

Pages: 1 2 [3]
31
Installation and Upgrades / Re: FTP per user basis custom configuration
« on: December 10, 2012, 09:33:03 am »
Thank you stuartiannaylor/Marcus. I'll let you know when I try what you suggested.

32
Hello,

I want to grant user A no access to FTP, user B should be able to access her home directory, and user C should  be able to access his home and the www directory.

As far as I know, vsftp, the ftp server used by zentyal, allows that configuration by indicating in its config file a directory where the user custom configurations are stored. But any change I make to vsftp config file is overwritten by zentyal, much like happens to th changes made to its web server configuration file.

I know that, in the web server, changes can be made that will not be overwritten: a file can be created at  /etc/apache2/sites-available/user-ebox-[domain] . Is there anything like that for vsftp? Or any other way to be able to configure FTP access for each user?

Thank you!

33
Installation and Upgrades / Re: LDAP sync, users and shared folders
« on: September 05, 2012, 01:11:43 pm »
Ok, all of a sudden, I could share folders again. I don't know if it had to do with me disabling and then re-enabling the firewall.

Still, can't figure out how to let a user from my LDAP login to Zentyal. Any idea?

34
Installation and Upgrades / LDAP sync, users and shared folders
« on: September 05, 2012, 12:49:57 pm »
Hello,

I'm having troubles trying to access shared folders. I have Zentyal Community Edition 2.2.7 installed as a Windows 2003 AD slave, so all the users in my Zentyal are replicated from it. All but one, since the Zentyal main admin user, the one created during installation, doesn't belong to that AD nor is listed anywhere (though that user can log in with no problems).

To explain it, let's suppose I have two users: the one created during installation (from now on, "zentyal_admin") and the one syncronized from LDAP ("akhasis", belonging to the "administrators" LDAP group). I'm trying to share the /srv/www folder so that I can upload my webpages just drag&dropping them to a directory on my desktop (workaround till I can get FTP to work).

So I set /srv/www as shared with the group "administrators". When I try to access it from another computer, it doesn't let me (it keeps asking my username and password). This makes me think that, despite listed in Users section and having their own folder, the users aren't recognized by Zentyal. Moreover, the Dashboard shows only 1 user.

The only way I can access those shared folders is allowing guests and then connecting from another computer with my "zentyal_admin" user.

I have been trying to solve this for days, but can't think of anything else to try.

Also, there is no way to allow "akhasis" to admin my Zentyal installation. May that be another symptom that LDAP users aren't recognized beyond getting their own /home/username directories?

I'd be really thankful if you could give me any hint on how to solve this.

35
Installation and Upgrades / Re: Canonical URLs
« on: July 20, 2012, 02:40:18 pm »
    Ok, I think I did it -- the Zentyal way!!

    Go to your Zentyal panel > web servers. Create 2 virtual hosts: mypage.mydomain.com and
www.mypage.mydomain.com. Automatically, Zentyal creates the corresponding directories for each page, and the necessary entries in the DNS section. Go to the DNS section and complete it like this:

Domains:
  • mydomain.com (its IP address is pointing to an external server where our webpage is hosted).

    Machine names:
    • ns (pointing to the same IP as above)
    • mywebserver (or whatever you want to call that 'physical' computer. Pointing to the internal webserver IP)
    • www.mydomain (again pointing to the external server)
    Alias
[/li]
[/list]
[/list]

This way, you can access via mydomain.com and www.mydomain.com to our main webpage, hosted in an external host; and our secondary webpage, hosted in our internal webserver, via mypage.mydomain.com. When you load www.mypage.mydomain.com it still loads a different page. Lets deal with it:

Go to /etc/apache2/sites-available/user-ebox-www.mypage.mydomain.com . There is where the custom configuration for that webpage can be stored.

Make a new file, call it documentroot (or whatever you like) and put in it:

Code: [Select]
DocumentRoot /srv/www/mypage.mydomain.com/
Now, both mypage.mydomain.com and www.mypage.mydomain.com are pointing to the same directory. You can even delete the directory Zentyal created to store the www.mypage.domain.com website files safely.

I hope this post is useful for somebody and saves them the time it took me (and you).

Thank you again for your help!


36
Installation and Upgrades / Re: Canonical URLs
« on: July 20, 2012, 01:21:15 pm »
All the ping results are as expected except for

ping www.mypage.mydomain.com

(when pinged from inside mynetwork there's no response, from outside it is ok).

I setup my vhosts with Zentyal. It may sound silly, but I can't find the file where the vhost configuration is stored  :-[

It is starting to look like all my webserver configuration must be wrong. For example, the way it is configured, i think it wouldnt be possible to host a different website in the same machine under another subdomain (i.e. anotherpage.mydomain.com). I thought I was getting to something, but right now I'm totally lost.

37
Installation and Upgrades / Re: Canonical URLs
« on: July 20, 2012, 09:19:36 am »
    Hello,

    This is my configuration right now:

    Domains:
    • mydomain.com (its IP address is pointing to an external server where our webpage is hosted).

      Machine names:
      • ns (pointing to the same IP as above)
      • mypage (pointing to the IP of our internal web server so that when you go to mypage.mydomain.com a webpage different from the one above is displayed).
        Alias
        • www.mypage (again pointing to the internal webserver IP)

Just for you to remember, what I'm trying to do is get www.mypage.mydomain.com to point to the same webpage where mypage.mydomain.com is already pointing. If possible, following Zentyal philosophy instead of using workarounds.

I got the results of the DiG command as you asked (edited to match my "mypage.mydomain.com" example):

from outside our network:

Code: [Select]

; <<>> DiG 9.8.1-P1 <<>> www.mypage.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3880
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.mypage.mydomain.com. IN A

;; ANSWER SECTION:
www.mypage.mydomain.com. 86400 IN A X.Y.58.10

;; Query time: 56 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jul 20 07:37:51 2012
;; MSG SIZE  rcvd: 53




; <<>> DiG 9.8.1-P1 <<>> mypage.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56975
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mypage.mydomain.com. IN A

;; ANSWER SECTION:
mypage.mydomain.com. 86357 IN A X.Y.58.10

;; Query time: 1452 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jul 20 07:37:25 2012
;; MSG SIZE  rcvd: 49


From the in side:

Code: [Select]

; <<>> DiG 9.5.1-P2 <<>> www.mypage.mydomain.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32496
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;www.mypage.mydomain.com. IN A

;; ANSWER SECTION:
www.mypage.mydomain.com. 259200 IN CNAME mypage.mydomain.com.
mypage.mydomain.com. 259200 IN A 10.0.0.155

;; AUTHORITY SECTION:
mydomain.com. 259200 IN NS ns.mydomain.com.

;; ADDITIONAL SECTION:
ns.mydomain.com. 259200 IN A X.Y.129.117

;; Query time: 0 msec
;; SERVER: 10.0.0.155#53(10.0.0.155)
;; WHEN: Fri Jul 20 09:42:13 2012
;; MSG SIZE  rcvd: 100





; <<>> DiG 9.5.1-P2 <<>> mypage.mydomain.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14309
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;mypage.mydomain.com. IN A

;; ANSWER SECTION:
mypage.mydomain.com. 259200 IN A 10.0.0.155

;; AUTHORITY SECTION:
mydomain.com. 259200 IN NS ns.mydomain.com.

;; ADDITIONAL SECTION:
ns.mydomain.com. 259200 IN A X.Y.129.117

;; Query time: 0 msec
;; SERVER: 10.0.0.155#53(10.0.0.155)
;; WHEN: Fri Jul 20 09:42:00 2012
;; MSG SIZE  rcvd: 82



Thank you everybody again for your attention

38
Installation and Upgrades / Re: Canonical URLs
« on: July 18, 2012, 09:37:05 am »
Thank you all for your advice, but I can't manage to solve my problem. I'll let you know more about what I need and what I have done already:

I have a web application working on my Zentyal server. It can be accessed through the url mypage.mydomain.com/nameoftheapplication/public/.

Since I want to make it easier for the users of the application to access it, I needed to change the documentroot for mypage.mydomain.com to point to the public directory. To do so, I created the file /etc/apache2/sites-available/user-ebox-mypage.mydomain.com/documentroot with the right documentroot directive. Now, when I go to mypage.mydomain.com, the homepage of my application is displayed.

Now, what I need is to get the same behavior when I go to www.mypage.mydomain.com (that is, access the same homepage). As of now, when I go to that last URL, I get the message

Quote
It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

(I don't know if it's a default behavior of Zentyal because as far as I can tell, there is no www alias configured for this domain).

I think that what I am trying "the Zentyal way" would be accomplished like this in a non-zentyal web server:

Code: [Select]
<VirtualHost *>
  ServerName mypage.mydomain.com
  ServerAlias www.mypage.mydomain.com
  DocumentRoot "/srv/www/mypage.mydomain.com/nameoftheapplication/public/"
</VirtualHost>

I have looked all around the Zentyal interface, and I guess there must be something at the DNS section to make the www URL point to the same folder than the non-www URL, but can't find it (answering innocenti_jr, I'm not very experienced at managing Apache, though up to now I've been able to google my way).

I expect I made my case clearer (instead of more messy, with so much info). I'm also glad to have users endorsed by Zentyal staff trying to help me.

Thanks again for your attention :D


39
Installation and Upgrades / [Solved] Canonical URLs
« on: July 17, 2012, 11:03:15 am »
Hello,

I'm just starting to work with Zentyal server for the first time, so maybe my question is quite trivial, but I could find no info about it.

I'm trying to get a webpage hosted in my Zentyal http server to work both through mypage.mydomain.com and www.mypage.mydomain.com.

I have been messing with the DNS configuration for my page and its aliases and managed to get both URL's to work, though for some reason the www url points to a different folder than the one without www (actually, I cant find out where the www url is pointing to).

Could somebody help me with this configuration?

Thanks in advance

Pages: 1 2 [3]