Networking :: Selective Dns Server Depending On User?

Jul 22, 2010

configure which dns the system will consult depending on which user iniciated the request.My goal would be, if user "peter" is logged in and has opened the browser, that requests for name solves from that user goes to certain/s dns server/s. And if user "anne" is logged and request name resolution, that request should be done to another dns server.To say it briefly, the idea would be configure selective dns server use depending on system users.

View 13 Replies


ADVERTISEMENT

Ubuntu :: Trying To Write Script To Perform Tasks Number Of Times Depending On User Input?

Apr 13, 2011

I'm trying to write a bash script with a for loop that will perform two tasks a number of times depending on the number the user enters at the start. Here is what I got so far. It works fine the first time but then it just exits with no error msgs. The problem is in the way I have written the loop command. I have searched the web for examples to find out what I'm doing wrong with no luck.

#!/bin/bash
declare -i Num=1
declare -i Strnum=8

[code]....

View 3 Replies View Related

Server :: DHCP3-Server Giving IP Addresses Depending On MAC

Apr 11, 2011

I have dhcp3-server (isc-dhcp-server) installed on my Debian and now I got a question about how it's giving the IP addresses to new devices.

For example: I connected my laptop and dhcp server gave me 192.168.1.5 address. Will it always give me the same ip address when I connect my laptop or it will eventually change after some time (week-month)? If it's not changing it, then I am wrong about this.

BUT...If I am somehow correct and if it will change in a week and give me another random (like 192.168.1.8) IP even I won't change my laptop network adapter, is it possible to configure dhcp server to always give same IP address depending on what MAC it is?

To make it clear, I want that when I connect new device (new laptop/pc) dhcp server would give it random IP but same time it would note the MAC address and never change the IP on that MAC.

I know about MAC filters, but setting filters is when you know MAC address since beginning and want to assign IP for it, but in my situation I don't know the MAC address.

View 4 Replies View Related

Networking :: SSHD Different Settings Depending On Network?

Feb 19, 2010

is it possible to specify differnt settings for ssh depending on where somone is logging in from basically i want PasswordAuthentication yes when someone is logging in from 192.168.*.* but set to no when logging in from anywhere else

View 1 Replies View Related

Server :: Send Traffic Down WAN Link Depending On Client IP Address Range?

Apr 15, 2011

I am running Debian Squeeze with the following basic services running:DNS
DHCP
Samba
Squid

The server is setup with three NICs: eth0 (WAN1), eth1 (WAN2), and eth2 (LAN).The server addresses clients with an IP range of 10.0.30.1 - 10.0.30.254. Some clients will be set with reservations so they fall into the 10.0.40.1 - 254 range.

What I want to do is have any outgoing external traffic coming from the first range (10.0.30.0) to use WAN link 1, and any outgoing external traffic coming from the second range (10.0.40.0) to use WAN link 2.

I have sort of got something working. I have created a bare minimum transparent squid3 setup on port 3128, and set the iptables as follows:

Code:
iptables -t nat -A PREROUTING -i eth2 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.0.0.1:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

I can get internet access, however obviously it only goes through one WAN link. It also seems slower than it should be. I experimented with tcp_outgoing_address, but seemed to not be my friend.

View 4 Replies View Related

Networking :: /etc/resolv.conf Search Line Depending On Connected Network ?

Dec 14, 2009

I use my laptop both at home and at my job. At home it gives me the correct search line.

But when I am at the office I only get 1 search entry while if you boot in windows it gives you 3

(for example):

So this should be in /etc/resolv.conf search domain domain.com my.domain.com

It seems that this is not passed by the (Windows) dhcp server (Active Directory).

Is there any way that linux can detect depending on the network it is in that there are a few search domains added(for example like resolvconf does with ppp tunnels)?

View 4 Replies View Related

Ubuntu Installation :: Selective Upgrade From 10.04 To 10.10?

Oct 12, 2010

I want to upgrade to 10.10, but on the update manager it says it's gonna install 179 new packages that I don't want/neeed (such as open office that takes too much space), so I'm wondering if theres a way to select which one of the new packages I want to install, instead of all of that?

View 1 Replies View Related

Ubuntu :: Selective Print Not Working In Document Viewer

Jan 7, 2010

I'm new to Linux and Ubuntu, but have started migrating as I like what I see. However, I found a problem with Document Viewer. After downloading and viewing a PDF, when I try to print either the current page or a page range, it insists on printing the full document. I could not find this bug documented anywhere. I'm using Ubuntu 9.10 with the latest fixes etc.

View 2 Replies View Related

Ubuntu :: Preserving Multiboot Setup On Selective Reinstall?

Sep 14, 2010

I've set up a multiboot with XP, Vista, Windows 7, and Ubuntu 10.04.1, installed in that order in five individual partitions on a single hard drive (fifth is for the Ubuntu swap area). Everything is working well: On boot, the GRUB menu comes up first, with the usual Ubuntu choices and "Windows 7 (loader)". When I select that last option, I'm then given the Windows boot menu that allows "Earlier Version of Windows", "Windows 7", and "Microsoft Windows Vista". They all boot properly, and I don't mind having to use the second menu. I would like to reinstall XP (only) to the same partition it now occupies. I suspect this will mess up my current booting scheme, correct? Is there a way I can prevent this, by saving the GRUB configuration or whatever?

View 3 Replies View Related

General :: System That Allows Selective Booting As Work Station

Mar 16, 2011

Wanting to experiment with Linux. Would like a free or inexpensive version on CD or DVD. Would like source code to be included.

View 4 Replies View Related

Ubuntu Networking :: Samba Server And User Permissions

Dec 30, 2010

I have a Samba server running on a box where I login to admin as user:
FRED
The Samba users are
SUE
JOE - Read only for specified paths (media playback access only user)
SUE can read/write to any directory under the share: Media

So all that is working fine. As long as I do file operations remotely as SUE everything works remotely. How can I make it to where everything SUE does over Samba FRED automatically has permissions to edit when logged in locally (or SSH)? Also, remember, Joe needs to be able to read where specified.

View 3 Replies View Related

Ubuntu Networking :: Nautilus Connect To Server - FTP Anonymous User

Jan 20, 2010

I'm trying to use Nautilus's connect to server to connect to an ftp server, but I'm having a problem. The username on the ftp server is "anonymous", but it requires a password. When Nautilus sees "anonymous" as the username it assumes it's dealing with a public ftp server and doesn't prompt for a password, and then, of course, I fail to connect.

I've tried modifying the .gtk-bookmarks file to account for this, but this leads to another problem. The password opens with a / and for whatever reason, this leads to Nautilus popping up an error: "Could not connect to ftp://anonymous:0/[rest of password]@[server]". It's adding a "0" to the beginning of my password for some reason. Is there any way to fix this without changing the password?

View 2 Replies View Related

Ubuntu Networking :: FTP Server - Setting Default Directory Per User

Jun 21, 2010

I am using VSFTPD as my FTP daemon. I want it to be set up so that my user (cj) will have a default directory of / when I log on to the FTP server and I want the secondary account (guest) to have it's home directory as the default location without any access to the root of the drive.

I need my account to have the default as / because the FTP client that I use in Windows won't go up to the parent directory of the default. Therefore, I cannot access the rest of my drive.

When I set "local_root" to "/" , it brings both users to the / directory when they sign in, even though the guest account is set to open the home directory with the "chroot_list_enable". It seems like the local_root option overrides the chroot_list_enable option.

Is there any way to set the default directory for each local user separately?

Also, Let me know if this is impossible with this FTP daemon

View 2 Replies View Related

Ubuntu Networking :: Network Server One User Account To Login To Any PC

May 8, 2011

Network server to administer accounts for all users, one login ie at login select or type in user name and password to login - so that I don't have to setup users separately on all PC's so that they can login from any computer.

View 3 Replies View Related

Networking :: Allow Remote Access To Server Running On User Account?

Jul 11, 2010

In the past, I've installed Internet services as daemons and as xinetd.d with no problems. Those approaches do not meet my needs. And, perhaps, nothing will.

- the service was converted from VB-6 to wxPython. It has a GUI which is accessed with either "remote desktop" or VNC.
- the wxPython service works on Windows and can be accessed from other hosts on my LAN
- the wxPython service works on CentOS and Fedora, but can only be accessed from within the server host. Even from other user-ids. But, I cannot get to it from other hosts.
- ipchains AKA firewall ports are marked for INPUT.
- The server host uses autologin to fire up a useid in group "user". I do not want it running as "root". the .bash_profile fires the service up.
- the service is heavily mult-threaded, and supports devices connected to serial ports asynchronously with the ephemeral port threads (all this works).

There are some programming solutions that I would rather not develop.
- a proxy service that runs under xinetd.d.
- separate the GUI code from the Internet and serial port code. Allocate a "control" port for remote GUI control. a'la SAMBA & SWAT

Is there any hope, that I can run it as is, by doing some network configuration stuff.

View 8 Replies View Related

Ubuntu Networking :: Mount A Server Partition With Normal User Access?

Jan 26, 2010

I need to mount a partition that is on a server (via samba).

I am doing the following in my fstab

Quote:

//server/www /media/www cifs rw,user,allow_other,default_permissions,credential s=/root/.smbcredentials,iocharset=utf8,dir_mode=0777,file_ mode=0777 0 0

I can mount it but it just allows me to access with the root user. How can I do it to get access with any user?

Additional Data: I added "rw,user,allow_other,default_permissions" because I thought that would solve de problem but it didn't.

View 1 Replies View Related

Networking :: In PPTP Server - Limit Bandwidth Per User & No. Of Connection Per Account?

Apr 2, 2010

recently i rent a xen vps intended to setup a PPTPD vpn server for me and my friends. so we can by-pass the great firewall in china and get back on ....., facebook and stuff. i have already setup the server and i can connect to it without any problem. but i still want to do some further configuration the server:

1. i want to limit the bandwidth to 400k/s per connection.
2. i also want to limit the max connection per user a/c

i have some thoughts on the 2nd requirement. in the user configuration file of /etc/ppp/chap-secret, you can specify the range of ip the user can get, does it limit the max connection per user a/c? or they can connect anyway, just every now and then a box pop up says conflict in IP address?

View 1 Replies View Related

CentOS 5 Networking :: Configuration In Huawei Switch And Radius Server For User Authentication

Sep 25, 2009

i want to authenticate user (client) via switch to the radius server(CentOS)Can anyone tell me the authentication/authorization configuration that should be made in the switch (huawei) and the radius server(centos).Esp. the main files under /etc/raddb/ in the Server& the configuration to be made under the radius server template "test"( as of my case)...

View 1 Replies View Related

Ubuntu Networking :: Terminal Command/script To Upload A File To An Ftp Server Without User Input?

Apr 26, 2011

I've got used to using the ftp command from the terminal, which is useful, especially with macros. But it requires user input, and what I want to do now is upload a specific file to a server, once I've finished working with it every day. It's the same file every day. II would like to be able to do this semi-automatically: I just give the command and it connects to the server and uploads the file. (I will probably want to encrypt the file before uploading it.)I don't know how I could use ftp without any user input: I want it to be automatic.

View 5 Replies View Related

OpenSUSE Install :: Using Multilanguage Depending On Login?

Dec 30, 2009

Is it possible to install 1 more language in openSUSE, and then, one user to use one, another user to use another? I mean, when I login, I want english, and when my mother logins, to be Serbian/Croat?

View 3 Replies View Related

General :: Script For Removing Files Depending On Age?

Jun 6, 2011

I want to develop a bash or Perl script that will evaluate files in the local directory and delete every file that is older than a specified time period, such as three months.I write documents and save the latest modifications by putting the current date in the filename, so I can easily see which versions are the newest. I would like to clean up my directory every once in a while, though, by eliminating the copies that are more than a few months old.

View 14 Replies View Related

Server :: Make A Normal User Execute Commands Of The Super User's?

Jul 3, 2010

I have a question that i want to make a normal user to execute the commands which the root user is able to execute, say if i have a user named siru and when i logged in using siru i cannot run commands like tracert,nmap@loccalhost and all but i can run when i have logged into root account so my question is how to make siru to run the command tracert,nmap@localhost.I have even edited the .bash_profile of siru's home directory from

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

[code]...

View 1 Replies View Related

Server :: Rsync Using Www As User Gives Ssh Error - User Www Not Allowed Because Account Locked

Feb 11, 2011

Apache is run as www as is all the files/folders. People are uploading via FTP, scp, so the problem is if I chmod so everyone can read, then rsync as a user it works until new files are added which then my ; if rsync fails with a permission denied. Now I can add a chmod in the script so everyone can read, but since www can already read, I figured I would just change my script to use www. I added the ssh key to his authorized_keys file, but when I try to just ssh in I see this in the secure file;

server sshd[29539]: User www not allowed because account is locked
sshd[29539]: Failed none for invalid user www from ip port 54983 ssh2

Now I read a few places already saying I need to add a password to the account, etc. but before I jump and try all I read, 1st major one, will this now break apache? Will this affect any startup things, etc. and .... will that unlock that user for ssh in or is there another preferred method?

View 6 Replies View Related

Debian Configuration :: Services Depending On Kernel Booted?

Jul 26, 2011

is there a Debian way possibility to start services depending on the choice made on the (grub) boot prompt? As an example:

Workstation - starts all and everything but no hostap nor xend (run this at home)
Workstation traveller - starts like Worksation except networking (run this in the pub
Xen host - run this preparing some training courses
Xen host HOSTAP - run this having the training course with a WiFi net for the class

I came from Gentoo recently and there is such a possibility. It is relatively simple to put a kernel option which the kernel does not recognize at the boot prompt. Such not recognized options will be sent through to init (and thus to the SysV init scripts) by the kernel and I could script this. What I am looking for is a the "official" way on Debian to do such things.

View 2 Replies View Related

Fedora Servers :: Dhcpd Option Depending On Manufacturer?

Jan 7, 2010

I would like to send a specific option 15, domain-name, to a few clients on a network from a specific manufacturer. Usually all clients [URL] from the DHCP server, but when a client with mac address bellonging to manufaturer A asks for an IP address I would like to give them [URL] How would I go about doing this? Feels like it should be possible but I am not sure how.. I remember doing something similar in a microsoft DHCP server using vendor-identifier and passing out a vendow-specific option.

Quote:

class "xxx" {
match if substring (hardware, 1, 3) = 00:00:10;
option domain-name "yes.this.works.com";
}
/Carl

View 1 Replies View Related

Fedora :: Firefox Graphics Different Depending On Whether It Starts Normally Or From Startup

Apr 22, 2010

trying to get Firefox working properly. I have the tarball installed from Firefox�s site and am using Fedora 12 with KDE as the desktop environment. The problem is if I start Firefox normally, say, by just clicking on the firefox script, then the graphics will be rather crude; but when Firefox starts as soon as I log in (because I�ve configured it to auto-start) then the graphics will be nice and smooth. I�m having a hard time trying to find answers for this because I�m not exactly sure what�s happening? I think when it auto-starts as I log in, it�ll use... well, this is the bit I haven�t got a clue how to explain? I�d guess one time it uses QT, and the other time it�ll use GTK.

I don�t know why it�s doing this, and when it�s started normally and I go to shutdown most of the time it�ll come up with a crash report. There isn�t any difference in the way Firefox is being opened, the auto-start calls upon the same script that my shortcut uses, which is the same as clicking on the firefox script in the firefox folder. I have a few images attached to elucidate the problem. I understand I may not have made myself very clear, but I�m having a great deal of trouble understanding what precisely is going on.

Firefox can seem a bit glitchy when the crude graphics are in use. Like the mouse-overs which leave traces of the box behind when you move the mouse away. So I�m having to logout then back in if I�ve happened to close Firefox and want to reopen it...

View 3 Replies View Related

OpenSUSE Install :: Privileges Depending On Boot Method?

Jan 30, 2011

1. I need to mount SAN blackarmor share at boot. I can do it manually. But I need it mounted everytime. So I introduced it into fstab. No result. See my fstab below.

Code:

//192.168.1.3/Public/home/pawel/black-publicautoauto,rw,user="myuser",password="mypassword"00

I wonder what type of filesystem shall I use. Manuall mounting works with no fs spec, if smbfs or nfs is pointed it makes error.2. When I boot and loging in run level 5 straight into gnome desktop I've got different privileges, expecially to USB devices and sound system (I can not play on my external sound card). How can I control this behaviour. Let's assume that I want to stratx from level 3 as regular user and want to have all this automatic privilleges for hot plugin USB devices and automatic access to sound system. Is controlled by gnome?

View 9 Replies View Related

Ubuntu Servers :: How To Auto Suspend And Wol Depending On Usage

Jan 18, 2010

i have a pc that is set up as a torrent slave / file server and media pc i want to set i up so that is goes in to suspend when there is no need for it to be on. I wnat it to wake at a set time to run a cron script for me, to check if there are any new torrents out, if there are , download an seed to till rtorrent auto stops the seeding (for me thats set at 1:1), then go back in to standby mode, if there are no active downloads then i want it to go back in to standby straight away.

as its also used as a file server, is there any way to have the shares still visable, with the pc in stand by, then when a user accesses it wake up the server, and if there is no activity after a set time out then go back in to standby. i would also like it to wol when i try to ssh in to it as a htpc is runns moovida, i would also like it to only go in to standby mode if i am not playing a video.

View 1 Replies View Related

Ubuntu Installation :: Using Fdisk Or Gdisk Depending On Hardware?

Jun 25, 2011

I have installed 10.04 64bit on two machines that have different hardware. After the installation (that went perfectly by the way), I needed to add extra partitions on both machines. Normally I use fdisk for this, and on one machine this went OK. On the second machine, however, after starting fdisk, I got the warning message that a GUID Partition Table was found on the disk, and fdisk was not compatible.
This leads me to believe that during installation on the first machine fdisk was used to partition my harddisk, and on the second machine gdisk or gparted was used. Is this normal ? Is there a way at installation time to force the use of fdisk ?

View 1 Replies View Related

General :: Check Character And Then Replace Depending On Result?

Oct 26, 2010

I have a CSV file with 8 columns. I want to check the 5th column, which will contain a single capitalised letter. If that letter is say "B" I would then like to replace the 2nd column in the csv with an incremental number starting at 0 (basically a count) with a prefix of B (B0000001) Sample row would be:

Code:

C, 0109390,sfs,sfsf,B,blah,blah

Amended row would be:

Code:

C, B000001,sfs,sfsf,B,blah,blah

View 14 Replies View Related







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