General :: Script For Unlocking Multiple Users?
Sep 1, 2010
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.
View 4 Replies
ADVERTISEMENT
Mar 30, 2010
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:
xxx@xxx-desktop:~/Documentos/git/test$ git clone -v ssh://xxx@192.168.1.104/pub.git
Initialized empty Git repository in /home/xxx/Documentos/git/test/pub/.git/
xxx@192.168.1.104's password:
[code]....
View 3 Replies
View Related
Nov 27, 2010
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
View 4 Replies
View Related
Jan 25, 2011
i have 3 groups on a samba server with about 30 user per group.I would like to know how to delete all the user in a group before adding new users.
View 1 Replies
View Related
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?
View 2 Replies
View Related
Jan 12, 2010
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?
View 4 Replies
View Related
Feb 25, 2010
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.
View 14 Replies
View Related
May 9, 2011
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.
View 1 Replies
View Related
Aug 17, 2011
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)
View 3 Replies
View Related
May 31, 2010
M using Ubuntu. How do i unlock POP and SMTP ports.
View 1 Replies
View Related
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
Apr 25, 2010
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
[code]...
View 1 Replies
View Related
Oct 31, 2010
Let's suppose that a machine has three users:
(1) david
(2) dan
(3) joel
The computer now restarts and during the log-in process, I choose to login into dan's account.
At this point, when I am logged in into dan's account, will Ubuntu run the crontab jobs that belong to david / joel?
View 4 Replies
View Related
Aug 27, 2010
how to create multiple users in linux
View 4 Replies
View Related
Oct 12, 2010
is that possible to have multiple users for one linux session? and how can i do that ? it's possible to creat virtual users for a session ?
View 2 Replies
View Related
Feb 3, 2010
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)
View 3 Replies
View Related
Jun 1, 2010
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.
View 2 Replies
View Related
Feb 7, 2011
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).
View 5 Replies
View Related
May 26, 2009
I am trying to configure samba for anyone of the scenarios in the subject. here's what my smb.conf looks like:
Code:
workgroup = RnD
[Samba Share]
comment = Samba share on Ubuntu!
path = /srv/sharedfolder
available = yes
[code]....
The error while trying to connect to the share is:
smbd/service.c:make_connection_snum(1082) Can't become connected user!
View 12 Replies
View Related
Dec 22, 2009
setting up multiple (2-3) FTP users on Ubuntu Server 9.04 I currently only have ONE FTP user, but I need to have 2.
View 1 Replies
View Related
Dec 4, 2010
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.
View 2 Replies
View Related
Feb 7, 2011
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:
touch userlist.txt (UID:GID:USERNAME)
100:110:user1
200:210:user2
[code]...
View 6 Replies
View Related
Feb 6, 2010
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.
View 4 Replies
View Related
Aug 11, 2010
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!
View 4 Replies
View Related
Oct 11, 2010
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.
View 1 Replies
View Related
Oct 16, 2010
On Ubuntu 10.04 when there are more than just one user logged in, if one of users logs off system hangs with a black screen.
After I reboot the machine and log in again, just after GDM login screen I get a window with a message about PowerMeter crash, with suggestion to 'cancel' and 'log off'. Only 'Log off' works, i.e. I'm successfully logged in.
Last entries from system.log before system freeze are:
Code:
View 9 Replies
View Related
Jan 30, 2011
Ubuntu 10.10 Server is loaded. Openssh has been loaded.
I have multiple users which need access to server via ssh.
My impression from reading about ssh is that a key needs generated for each person. Thus, each key will have a passphrase that is unique to them.
In /etc/ssh/sshd_config, the default sshd_config suggest using:
%h/.ssh/authorized_keys
My assumption is %h is a variable that will allow the current user to use the public key stored in his home directory under the .ssh folder in a file called authorized_keys. Is their a command string that automatically populates the authorized_keys file?
I am surprised that even though there are a number of hidden (e.g. .****) files located in the home folder, there is not one automatically generated as .ssh. It appears I have to create that directory myself. I am especially surprised by this since it appears the instructions for generating a key seems to load the key in the home directory instead of proceeding to create a .ssh folder to store the keys in.
It is not clear, but it appears that the public key needs to be copied or appended to the authorized_keys file, but, using the scheme above, the public key needs to be copied or appended to each users authorized_keys file instead of appending all public keys to a single authorized_keys location.
It then appears that each persons authorized_keys file needs permissions set to 600.
It also appears that if I decide to use RSA instead of DSA, I would do the same thing above but would use authorized_keys2 file instead.
Why doesn't the home folder which gets automatically set up for each user automatically get a .ssh folder generated? i.e Why does it have to be created by hand? Does it need the same permission on the .ssh folder? ie 600?
My aim is to allow many to log on via ssh simultaneously and then allow many to simultaneously vnc into their respective gnome desktops.
View 6 Replies
View Related
Feb 21, 2011
I want to count the number of users who have logged in multiple terminals ? How will I get this ? I always get the total number of users. How will I get the uniq number of users with multiple logins ?
View 3 Replies
View Related
Feb 12, 2009
this directory has permissions 750 and is owned by user1 and group user1 I have an admin user that is primarily a part of group admin, but also a part of group user1 what would stop admin from having read and execute permissions on this directory? I'm running clamav and have a clamd daemon running as user admin (I could run it as any user, and I may make a special user later, but I don't want to run it as user1, user2, etc).
I have 2 (technically lots more, but let's just say 2 for now) users, user1 and user2 that have home directories /home/user1 and /home/user2. each is owned and group owned by user1:user1 and user2:user2 respectively with permissions of 750. my admin user is part of groups admin, user1, and user2 I need this to be able to scan my user's directories using the command (is this correct?):
clamdscan --move=/files/quarantine/ --config-file=/etc/clamd.d/adm.conf /home/user1/file
doing this gives the error:
/home/user1/file: lstat() failed. ERROR
If I change the directory permissions to 755, it works fine.Or if I leave the permissions 750 and change the directory group ownership to admin, it works fine. So, why would this be? Obviously it is a permissions issue, but why is it not reading admin as part of the user1 group and allowing the same permissions as it does when making the directory group-owned by admin?
View 7 Replies
View Related
Oct 26, 2010
Idealy I want to create a batch file which would read the list and create a user and a password.
I know i need to create the file using the vi command and using the useradd facility to add the users however where i go from there i am lost.
View 5 Replies
View Related