General :: Bandwidth Limitation For Multiple Users Through LAN?
Aug 4, 2010
filter bandwidth for some users (about 150, from 100.100.100.1 trough 100.100.100.250) on LAN. All LAN users connect to the internet through RedHat linux server and all I could do so far is to ban some of them using iptables and commands
-A INPUT -s 100.100.100.107/32 -j DROP
-A FORWARD -s 100.100.100.107/32 -j DROP
-A INPUT -s 100.100.100.235/32 -j DROP
-A FORWARD -s 100.100.100.235/32 -j DROP
I would like to set a download/upload limit for some of them, is that possible?
I'm having problems with squid, and i don't know how to solve them because I'm new to linux. a. Why squid in my computer often does not work? The process has already started (using the command sudo squid start), but the Internet on client computers can not connect. This can be be resolved if the proxy server computer is restarted. Anybody know why is this happen?
b. How do I set the client bandwidth limitation using squid? I want the client computers can only use maximum 60-70 KB / s. Do I need another additional software package?
when the server is getting overloaded with users. At present I run the server mainly as a proxy server with about 100 users. The bandwidth at the data centre is 100Mbps connection with total bandwidth used last month = 17431.16 MB
I would like to add a VPN in future but feel that this might overload the bandwidth as instead of it just being web traffic it will the entire client TCP connections. I would like to monitor this before it gets to the stage where users are complaining but not sure how to gauge whether the proxy is being overloaded. It is used mainly for video traffic.
I have a router having four ethernet ports and bandwidth of this router is 500kbps. Suppose one user used one Ethernet ports only rest of Ethernet ports are free, that user should get 500Kbps. If I Add one or more user to any of the Remaining Ethernet ports how can i equally share a bandwidth among those two users ,it means each user should get 250kbps.
I want to setup a git repository, three of four users will contribute, so they need to download the code and shall be able to upload their changes to the server or update their branch with the latest modifications.So, i setup a linux machine, install git, setup the repository, then add the users in order to enable the acces throught ssh.Now my question is, What's next?, the git documentation is a little bit confusing,i.e. when i try from a dummy user account to clone the repository i got:
I'm quite new to Linux and wanted ask how I can install applications to any Linux distribution such as Debian or Red Hat so that multiple users can access and run that application. Should I be root to install applications to directories like /var, /opt
Id like to create a script to unlock multiple users rather than entering the command manually for each user.Im quite new to Linux and have not done any scripting so far. its possible to achieve what I want, and possibly provide examples or point me in the right direction? We are using RHEL 5.
I would like to mount a (permanently) attached external USB drive so that it is writable by multiple userids. Currently HAL is mounting the drive as writable to my owner user and readable for group and others. My m/c also runs as an FTP server and I would like said FTP server to be able to write files to the external drive. Just being able to specify a gid would probably do the job for me.
I have googled HAL and UDEV and also attempted to configure usbmount to do this, all to no avail. I am running SLES 10.3. So in summary, can I & how do I either make HAL mount the drive with gid=nnn, or should I not use HAL and simply make an entry in /etc/fstab and make sure a I get the same device address for this USB drive each time I boot?
I'm having trouble breaking down permissions in linux. Here's the scenario. I have two users: UserA & UserB with each having to ownership and access to directories myDirA and myDirB respectively.
UserA --> /source/myDirA UserB --> /source/myDirB
I need to set the permissions so that userA can access myDirA and myDirB. There are other users and directories but they should not be able to view outside of their own directories (which is the way it is now). I don't have groups set up for them and I'd rather not change anything else but just the permissions.
rwxr_x_r_x UserA rwxr_x_r_x UserB
They're read/write/exec permissions are identical.
There is a folder that is owned by user tomcat6: drwxr-xr-x 2 tomcat6 tomcat6 69632 2011-05-06 03:43 document. I want to allow another user (ruser) write permissions on document folder. The two users (tomcat6 and ruser) does not belong to same group. I have tried using setfacl: sudo setfacl -m u:ruser:rwx document
but this gives me setfacl: document: Operation not supported error.
How can I configure a single computer to work for multiple simultaneous users? I would like to have multiple keyboards and monitors on a single PC ... Is it possible? This set up I'm planning for CyberCafe, For cyberCafe business ROI is very slow... so was planning to have something like this....
-single CPU (Which would act as a server) -Multiple monitors, keyboards, Headphones etc....
If this works out then I would save a lot on my investments (OS cost, Hardware devices, electricity etc)
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?
I created a the class like this for shaping the packets with a specified bandwidth rate.....
tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1: htb default 15 tc class add dev eth0 parent 1:0 classid 1:1 htb rate 750kbit ceil 750kbit tc class add dev eth0 parent 1:1 classid 1:3 htb rate 600kbit ceil 750kbit prio 0
For Our Requirement:-
I dont want to specify the bandwidth rate strictly like this rate750kbit ceil 750kbit,based on whatever speed is coming which should allocate the bandwidth rate for particular class...I need one application for finding the upcoming bandwidth & Is any other method is there for specify the bandwidth rate in a classes.
I had Ubuntu 9.10 running ok, but I've decided to try Lucid Lynx with Kubuntu and was quite impressed with the quality of KDE. Everything worked out of the box also.Until I tried to login with two other accounts this computer had...With one of the users I get both errors seen on the snapshot. One regarding the network manager (which I think it was given just because it was already started by another user), and the ibus error, which completely locks the user from accessing any other drive or usb disk.For the third user, even if creating it from scratch (not re-using his /home), I get an error:
Code: kstartupconfig4 does not exist or fails. The error code is 3. Check your installation. /home is in another partition that's been used since 7.10 I think. I did cancel all /. from
In the menue of Kubuntu 10.10 (live-CD) for selecting the keyboard layouts appears a message saying that there is a limit of selecting maximum four keyboard layouts, if I try to select a fifth one. That is very little four people involved/dealing with languages or for computers shared by several people from different countries. Does anybody knows anything about this limit and how to increase this number? In windows you can select more than a dozen languages. Where is the problem? Is it a problem of the KDE or of the linux kernel or what kind of problem is it? An other user told that this problem exists also in other versions e.g. in Ubuntu.
Ok, for various (mostly security) reasons I was experimenting in running certain apps as a different user id (on Karmic).
I can get X to forward to my main session without a problem but I cannot get the sound to work. Sound works fine in my main session, but when I run sound as another user I get plenty of errors like:
PHP Code:
ALSA lib pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
I am not a big linux GUI person, so I have rarely dealt with sound systems under Linux. What is the simplest way to get this to work in a relatively secure way? (I do realize that my security is already a bit compromised by allowing the secondary user access to X, but that can't be helped)
I want to add users from the command line, I know I can use the adduser for individual users, but if you have 50 or more there must be another way. I'd rather not use the GUI.
I work in a company where the Ubuntu server is managed by different people around the world. Day-to-day admin : me in France with an Azerty keyboard Level 1 24/7 support : team in US with a Qwerty keyboard
Of course there's commands like sudo dpkg-reconfigure console-setup but this one affects the whole system. I've searched quite a lot on how to change the keyboard layout for one person only, but it always relates to the Gnome interface. So I'd like to know if you knew a way to locally change the keyboard layout, only the SSH connection of the user? Maybe in the startup scripts of the bash session, or even better, when the user types his user login (so it detects his language and automatically switches to the right keyboard).
I have 2 users on my HPmini 210 netbook running Squeeze. I just found out that it does not connect to existing wireless networks when I login as the second user. Is it supposed to happen by default or am I supposed to do something to make that happen? Another problem is that when I tried to create "new connections" again for the second user, the keys won't work. The same keys are working for the first user. The network keys are WEP 64 bit HEX.
I need to create a lot of users locally on my server.I have these info:username:GID:UID.How I can make a "for cycle" for make a multiple useradd? (useradd -u UID -g GID -m /home/USERNAME -s /bin/bash USERNAME)I tried to do this:
I have a small ubuntu server setup and I would like to create a directory that can be written to by a select number of users. I have a backup directory setup and I want to enable my account as well as three others to be able to read/write to that directory. So far I haven't had any luck.
The owner of the backups folder, a directory on a separate disk mounted under /srv/storage, was owned by root and under the root group. I added the group backups and then changed the backups directory group to backups. I then used chown to change the backups directory to 775 to enable group members to write to it. I then tried to touch a file in the backups folder but no such luck. I did notice that when I run groups, my user account isn't shown as belonging to backups but is shown under the /etc/group file. I even made sure the GID of backups is in fact below 1000.
Anyone have an idea on how to create a shared directory that everyone can create, modify and delete any file? I believe my problem is related to the fact that root is the owner of the backups directory.
I just created a 2nd user on my computer. I've got the hard drive that ubuntu runs on, and then a 2tb drive for media. If the 2tb is mounted on my desktop, it won't show up on his desktop even if I'm logged out. It won't show up on his unless I unmount on mine.
If I'm logged out I'm obviously not using it. So why doesn't it show up? He has all privileges. Is there a way to make this work without having to unmount?
I'm running karmic btw. If you need computer info let me know what to type into the terminal and whatnot and I'll paste it all here!
I have a small problem regarding multiple X sessions. I want 2 X sessions started automatically on boot with 2 different users auto logged in and 2 different sessions running.
On first X session I would like to have gnome running with user1 On second X session I would like to have xbmc running with user2 So far my computer logs user1 in to a gnome session via gdm on boot. But then I have to launch a tty, log in as user2 and then start xbmc in a new X session.
How to make it work? I would also love to have the second X session active after boot. I am running Ubuntu 10.04.