CentOS 5 :: Share Visudo File Between N Number Of Servers?
Apr 5, 2010what is the best way to share visudo file without the need to use ldap.
View 3 Replieswhat is the best way to share visudo file without the need to use ldap.
View 3 RepliesRecently I migrated from Ubuntu to Debian, first thing i wanted to do was to give myself sudo permissions and lock the roir account. By default sudo group don't have permissions to do this on debian, so i wanted to edit sudoers file by typing visudo. But i keep getting this
error: Error opening terminal: vanilla How can i solve this.
I'm thinking of a few ways to do this I'm curious how many better/equal ways there are to do the same task.in a file with format like: 20 text Gi0/2 some other junk I have it reformatted to look like this before going in a database: 0/2 20 text. But for whatever reason some of the new input text looks like this now: 20 text Gi1/0/2 some other junk
My script makes it look like this: 1/0/2 20 text. I want it to remove the leading number and slash if the input file is in the new format.
i've fedora 10 both on my server and on my client, i'm using nfs to share files between this two machines but sometimes on the client, in nautilus some files disappear when i'm in the nfs-shares, and sometimes if i refresh, they appear again and sometimes not
View 2 Replies View RelatedI'm having a some pretty weird problems with some mounted file share in Ubuntu Server 10.04 LTS. Currently we are mounting several file share stored on a SLES Files Server onto our Ubuntu Web Servers using the CIFs protocol. Occasionally ( no rhyme or reason ) we will find that when you do a directory listing on the mounted share, while you are on the Ubuntu Server, there are no files being listed. Yet if you browse the SLES File Server or any other of the identical Ubuntu Servers (with the same mounts), the files are there ready to go.
Before using SLES for our file server we tried windows, and experience many of the problem you that you see on the forums of CIFs errors on the console screen. I'm beginning to wonder if 1. we can resolve the CIFs problems in Ubuntu 10, or do we need to down grad to Ubuntu 9 or 3.) change to something other than CIFs.
i have a problem, i share my files but nobody can access my file. what can i do?
View 1 Replies View RelatedI feel ashamed for even asking this, since it seems like there's about 3 samba questions here every day. However after an hour of searching, I keep finding strange variants that aren't what I need.
My Goal: Create a single file share on an Ubuntu Server - share it via samba to Windows clients that are on a domain with active directory. It sure would be nice if AD authentication would work - so users don't have to type in a linux user/passsword each time they want to access the share.
In my adventures, I've found the following items (which may overlap)
1. Joining the server to a Windows Domain
2. Turning the server into a Windows Domain Controller
3. Authentication with LDAP (still not quite sure how/what this would do)
4. Stuff with Kerberos
5. Lots of people bickering about Samba 3/4 & how it's impossible to make Samba a PDC.
I'm not sure if I need to make the ubuntu server a domain controller or not...all I want to do is create a file share and share it on the domain...I don't need to make the ubuntu server a domain controller for that, right? Maybe just a member? Maybe nothing at all?
I guess if I want to authenticate stuff correctly (or forward authentication requests? Not sure), I probably need to join the ubuntu server to the domain...I think.
But let's say I do join it to the domain...then how to I create a file share that is authenticated via active directory rather than a local ubuntu server account? I see a dozen guides on joining the server to the domain, but nobody ever mentions sharing the folder over the domain.
The lines are also blurred between joining Ubuntu to the domain and making it a domain controller. What should I keep an eye out to avoid in these tutorials?
I get lost between the Kerberos/LDAP/Samba/WinBind etc...and I have a feeling I don't need all of these for something this simple.
I'm trying to setup a Samba share for our work. I have it almost complete, however I can't successfully share editable files between users. The issue I'm having is that say User1 create a file test.txt, because of the 755 permissions, then User2, who has "writable" rights as per the smb.conf file, cannot edit that test.txt file.
Whevener I create a file with a user, its locked by that user. Is there a way I can set it that every folder/file a user creates is 777 ? I firgured that there's still security because of the "Valid users = " field in the smb.conf file.
I understand that chroot is usually used to provide security, however, for my issue, security is a big don't care. I am very new to using chroot and don't fully understand how the chroot'd env works.
problem: Trying to use a vendor supplied cross compile environment. The environment runs as a chroot'd env and works just fine. I have a large number of additional modules that I wish to compile in the chroot'd environment. FYI, these modules are also (succesfully) compiled for other targets not using chroot'd env's. Copying the source files into the the chroot environment is not an option (don't have hours to wait for copies to finish and it would break the make system). Having them live in the environment is also not an option (the chroot build is a tiny part of the build process and we cannot revamp our entire source tree to accommodate it).
I am looking for a way to have the compiler in the chroot'd env have access to a path that is outside of the env and typically higher up in the same path that holds the chroot'd env. I have tried soft links (they don't work as expected). Hard links only work for single files and there are 10's of thousands of files that would need to be linked. I am not sure how I would go about exporting the additional files and then mounting the exported files in the chroot'd env (or if that would even work).
On a small network i have 3 WinXP computers and i've just installed a two new ones with Win7 pre-installed. As server i'm running OpenSuSE 10.3 and Samba with only one share. As i mount it to WinXP computers all get same volume serial number:
Code:
V:>dir
Volume in drive V is AppDrive
Volume Serial Number is 8CD5-975C
...and all Win7 computers get a diffrent one:
Code:
V:>dir
Volume in drive V is AppDrive
Volume Serial Number is A0D3-975C
We use application witch somehow only works when one/same volume serial number on a mounted drive is used.
When I try this yum install kvm qemu libvirt python-virtinst qemu-kvm I become this error
Transaction Check Error: file /usr/share/man/man1/qemu-img.1.gz from install of qemu-img-0.10.5-1.el5.2.x86_64 conflicts with file from package kvm-qemu-img-83-164.el5_5.25.x86_64
how can I resolve this error
Code:
cat ${SOURCE}/{start,universal,index,end}.txt > ${SERVER}/index.html
cat ${SOURCE}/{start,universal,02042010,end}.txt > ${SERVER}/02042010.html
[code]....
I'm looking for a way to insert the number of lines in a file to the start of the aformentioned file. This should be simple but as I am not used to scripts in Linux, I am finding it tough going. I can find the number of lines in a file easily enough via
filesize=$(awk 'END {print NR}' $1)
but as for inserting this into the first line, i'm failing to do so. I've tried some of the other approaches on these forums but none so far have been able to do so.
I've tried:
sed '1i$filesize' $1
but sed i requires a string, not a variable so no go I've also tried:
mv "$1" "${1}.bak" 2>/dev/null || touch "${1}.bak"
cat $filesize "${1}.bak" >"$1"
but again with no luck as cat seems to need an input stream Just to recap, i want to insert a line at the start of a given file that holds the number of lines the original file has.
ie the file:
a
b
c
d
e
should become:
5
a
b
c
[code].....
What is the correct way to allow two servers to use the same file system on a SAN using iSCSI?Is it GFS on the two servers?
View 3 Replies View RelatedI need to use visudo in order to make a shell script properly work, certain parts of it require that I can use sudo without being prompted to enter my password and I need to use visudo to properly edit sudoers. I cannot stand vi, I don't know how to use it very well, the documentation/manual is confusing and to be honest i would rather use nano, I personally hate vi or vim and would never in a million years want to use it. Is it possible in fedora 12 to change visudo to sue nano instead? I don't care if I have to recompile visudo to make this a possibility because it beats using vi any day of the week. (In fact I don't get why it is the default, it is very awkward!)
View 3 Replies View RelatedHere is my scenario, I want to create about 3 groups of users:
--Admins-create and manage users
--Support1-Restart basic stack apps(httpd, mysql etc)
--Support2 Backups
So in my sudoers file i have managed to set them all up to perform the tasks above. However, I want to limit the users in the specific groups from running commands from other groups. eg a user in admins shouldnt be able to restart the stack applications etc. I have tried using the ! to create an exception eg !/etc/init.d/httpd start for the users but its not working.
I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.
In the %post I have :
%post --log=/tmp/post.log --erroronfail
mkdir /mnt/nfs
mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs
I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).
Here is the remainder of the KS :
lang en_US.UTF-8
keyboard us
timezone US/Eastern
[Code]...
I have a server with 48 cores, 8 6-way Opteron CPU's. Ubuntu Server 9.04 only sees 32 processors. Is there a limit on the number of cores/processors that the server will use? Windows 2008 on the same server sees all 48 cores and the so does the BIOS, so this is unique to Ubuntu right now.
View 5 Replies View RelatedI would like to change port number for a specific folder name on linux server like domain.com/folder_name:yyyy so people can access that folder with pre defined port number. is there a way that I can do that?
View 2 Replies View RelatedI was trying to make shutdown without root user using visudoI tried the following still it did not work for mehawk ALL=NOPASSWD:/sbin/shutdown -h now
View 6 Replies View RelatedI am new to linux and would like to allow a user to use SUDO to change password and also delete/add members to a group without signing in as root or using SUDO. I think you do this in visudo but I dont know the commands to do this.
View 4 Replies View RelatedI m new study Linux so Would you like guide me how to config CENTOS to share DATA .Anyway , pls if possible pls help me build FILE SERVER, ISA by CENTOS
View 3 Replies View Relatedi have a slave disk with some data formatted in ext4 , now i have 95 % of inode used ( and 50% of used space )how can increase inode ?
View 5 Replies View RelatedI've got 10.04 on a headless server on a home network. I've edited /etc/ssh ssh_config and changed line 39 from:
# Port 22
to:
Port 30000
I then
user@server$: sudo /etc/init.d/ssh reload
from the host
user@desktop$: ssh servername -p 30000
ssh: connect to host servername port 30000: Connection refused
What am I doing wrong? I've also tried completely restarting the computer.
I Love Jdownloader program but can't solve this old problem.
I'm still a little retard with GNU/Linux
Able to do a reconnect by running the following commands
Quote:
This is the script I'm using.
Quote:
It resembles this one in Window$
The program dhcpcd requires root user privileges.
Avahi daemon and network-manager widget should be disabled or uninstalled for this to work on Ubuntu.
Also I'm using Karmic.
I'm not Cisco certified. What I think it does, in a non technical comparison, is tell the ISP hardware that your ip should be 190.189.48.52 or whatever number you like.
For the ISP this would be the last lease you used.
The ISP hardware does not recognize this last lease in its list, so it assigns a new ip.
That does the trick and you get your new ip!
My ISP promotes the service with dynamic ip so no legal matters here.
The problem is how to automatize it.
Sudo runs the script with no privileges problems.
I am able to run it password-less by modifying sudoers file via visudo command.
I add the following line
Quote:
It can also be like (this would need extra security measures?)
Quote:
Then you can run sudo /usr/bin/cambiar-ip and it won't prompt you for a password.
Password issues solved, I cannot get Jdownloader to run it.
In the Settings > Reconnection tab
Tried to use "External" and "Batch" but i get reconnection failed sad face.
I've tried in "External" /usr/bin/sudo /usr/bin/cambiar-ip
It won't work.
I'm missing something of the Unix security structure.
Here is the wiki of the program
[url]
I have just installed Debian 8 with Gnome desktop and trying to add my username to sudoers list.
When I open terminal and enter visudo I get the following error message...
Code: Select allfracmo2000@debian:~$ su
Password:
root@debian:/home/fracmo2000# visudo
bash: visudo: command not found
root@debian:/home/fracmo2000#
Although I am quite new to debian, I have done this successfully in the past so not sure why this is happening?
I need to add a user to the sudoers in my vps host and edit a couple of files and I just cannot make sense of visudo, vi or nano. The tutorials I find on the net just take too long to study and they are never complete, can someone explain what I need to do? I am running Debian 506.
View 8 Replies View RelatedI am using ssh server to connect to my Ubuntu desktop. I opened the file sshd_config and change my port number of the server.I want to put a limit on the number of clients in the ssh server.
View 2 Replies View RelatedI made a fresh ubuntu server installation with two of the same hard disk drives in RAID1 mode.When the installation finished, I had some errors in random times rendering the system unresponsibleCode:end_request: I/O error, dev sda, sector <Number>From the above error, it looks like there was a problem with disk sda so I decided to change it with another same disk and rebuild the RAID1.
When I put the new hard disk on it, created a raid partition of the maximum allowed size and tried to add it to the raid array (after having removed the previous disk) I got an error saying that the new partition is not large enough to join this existing RAID1 array!Then an "fdisk -l" command shown something weird...The existing working hard disk in the RAID shows that it has 38913 cylinders but the partition starts at 1 and ends at 38913+1=38914!!How is this possible? When I create a partition myself I am not allowed to put numbers larger than the total number of cylinders!
Code:
# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
[code]....
Just installed centOS 52 x86_64 on a Core 2 Duo (E6750). From the /proc/cpuinfo I see that only one processor is detected. Any parameter on the BIOS to be changed?
View 2 Replies View Related