Find the answer to your Linux question:

Search:

Type: Posts; User: PatricF; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    6,731

    First of all relax, it's a php-file in a zip...

    First of all relax, it's a php-file in a zip archive which is basically just text. Did I ask you to upload it on your production servers? No I didn't. You can easily open it in a text editor to see...
  2. Replies
    2
    Views
    6,731

    Webserver infected with spamscript

    Hi!

    I have a webserver with numerous websites. There is one specific site that runs Joomla 2.5 that keeps getting infected with various php-scripts. The "hackers" use it to send as much spam as...
  3. Replies
    2
    Views
    2,328

    [SOLVED] Not when using "inherit owner = yes", it works...

    Not when using "inherit owner = yes", it works just fine on the rest of the share except in the folder that's over NFS.
    I had to add "no_root_squash" to the NFS export and it worked fine.

    Thanks...
  4. Replies
    2
    Views
    2,328

    [SOLVED] Samba: share stuff on another server

    Hi,

    I have two servers, one with Samba installed and one with stuff on that I want to share with Samba but I don't want to install Samba on it.

    So, server1 is the Samba server and wants to...
  5. Replies
    2
    Views
    2,579

    That looks interesting, thanks for the tip!

    That looks interesting, thanks for the tip!
  6. Replies
    2
    Views
    2,579

    Best way to setup MySQL failover

    Hello!

    Today I have an old MySQL failover-cluster configured with DRBD and corosync. I'm going to configure two new servers that I'm going to use as a new MySQL failover-cluster but I was...
  7. Replies
    0
    Views
    742

    Specify NIC for web-browser

    Hi,

    I'm trying to find a web-browser that allows me to specify which network adapter to use.
    I have one network adapter (eth0) and one virtual adapter (eth0:1).
    They have one IP each and on my...
  8. Replies
    1
    Views
    2,734

    Openbox with rounded GTK-buttons

    Hi,

    I can't figure out how to get my GTK-theme to work correctly.
    I only get the "old-school" look of all the buttons etc. where everything is square and not "rounded".

    This is how it looks:...
  9. Replies
    0
    Views
    1,025

    PHP: restrict 'shell_exec'?

    Hi,

    I have a Apache server on Debian 6.0
    On my server I've had some trouble with infected sites where they execute all sorts of commands and do all kinds of crazy stuff. Just last night I found...
  10. Replies
    2
    Views
    1,089

    unrar every subfolder

    Hi,

    I'm in need of a script that will "unrar" everything in every subfolder.

    For example the folders look like this:

    Series.season01-group:
    ->Series.s01e01-group
    -->Series.s01e01.r00-.r99...
  11. [SOLVED] I mounted the share as sshfs instead and it works...

    I mounted the share as sshfs instead and it works fine!
  12. [SOLVED] Ok it doesn't seem like it's Samba. The problem...

    Ok it doesn't seem like it's Samba. The problem is that /mnt/common is a NFS share from another server and that's the problem.. However it worked just fine on my old server (it's dead now) but on...
  13. [SOLVED] Samba: Can't upload files, part of file locked by other process

    Hi,


    I have a really weird problem with my Samba server.
    I've configured a share just fine and I can browse it and all. I can create folders and empty files but when I try to copy a file from my...
  14. Replies
    1
    Views
    676

    awk replace {print $2} with $var

    Hi,

    I can't figure this one out by myself. This is my file:



    And I need to replace the email address for a specific user.
    I do something like this to grab the users email:
  15. Replies
    1
    Views
    575

    [SOLVED] Feel so stupid for answering my own question. I...

    Feel so stupid for answering my own question. I did it like this:



    if egrep '^'$user'' /etc/passwd | grep /var/www/vhosts >/dev/null 2>&1; then
    echo "User exists"
    else
    echo "User does't...
  16. Replies
    1
    Views
    575

    [SOLVED] Bash: if users homedir is

    Hi,


    Right now to check if the user exist I do this:



    if id -u $username >/dev/null 2>&1; then
    echo "User exists"
    else
  17. Replies
    2
    Views
    4,494

    Wow that was fast! Thanks a lot, it works...

    Wow that was fast!

    Thanks a lot, it works perfectly! :D
  18. Replies
    2
    Views
    4,494

    grep first word

    Hi,

    I have a file like this:



    I need to grep user1 but Only the line where user1 is the first word. How do I do this?

    If I run "grep user1 file.txt" it will grep both lines..
  19. Replies
    1
    Views
    1,243

    Best content-filter setup (spam-filter)

    Hi,

    I'm very interested in what content-filters people use with large amount of emails.

    Lets say I have 1000 mailboxes that needs to be checked for spam, what would be the ultimate setup for...
  20. Webserver: restrict users from sending mail from specific address

    Hi,

    I'm wondering what people do to restrict their users from sending mail from the webserver with any sender they want?

    I've disabled the mail() function and I've read something about formmail...
  21. Replies
    2
    Views
    2,291

    Thanks, I will take a look at that! :D

    Thanks, I will take a look at that! :D
  22. Replies
    2
    Views
    2,291

    Apache vhost and logrotate

    Hi,

    I have an Apache server configured on a Debian 6.0 machine.
    I'm going to have a bunch of vhosts on this server and was wondering how to configure logrotate for them if I don't have the logs...
  23. Replies
    6
    Views
    3,128

    My goal is not to get a job as a software...

    My goal is not to get a job as a software developer. This is just a hobby and hopefully will get to the point to where I can contribute to open source projects. So I guess C++ will be the way to go...
  24. Replies
    6
    Views
    3,128

    Ah Just found out that C# is some sort of...

    Ah Just found out that C# is some sort of Microsoft thing.. But you can use it on Linux if you use Mono. So C++ is the way to go then?
  25. Replies
    6
    Views
    3,128

    Learn C# or C++ for Linux

    Hi,

    I'm looking around for a good programming book about C#/C++ but I don't know which language is best, C# or C++?

    I don't have any special requirement so I guess C# will do fine?

    I also...
Results 1 to 25 of 44
Page 1 of 2 1 2