General :: Create Ftpusers Files (CIS)?

Jan 4, 2010

while i am reading the CIS guide for RHEL, i came across this section, which is on "Create ftpusers Files".

The code:

if [ -f /etc/ftpaccess ]; then
for NAME in `cut -d: -f1 /etc/passwd`; do
if [ `id -u $NAME` -lt 500 ]; then
echo $NAME >> /etc/ftpusers

[Code]....

View 2 Replies


ADVERTISEMENT

General :: Open The Ftpusers File Through Vi Editor In HP-UX?

Aug 25, 2010

when I try to open the ftpusers file through vi editor in HP-UX, I am reciving the below error :

# vi ftpusers
"/var/tmp" No such file or directory

View 2 Replies View Related

Ubuntu :: Give FTPuser1:ftpusers R/w Access To The Same Folder?

Sep 30, 2010

I've got folder /srv/www/site1 that's owned by www-data:www-data (Apache). Now I need to give FTPuser1:ftpusers r/w access to the same folder, but all my attempts are gone bad. How should I exactly do it?

View 1 Replies View Related

General :: Create Pdf From Text Files

May 18, 2011

Can anyone point me to a well working peace of software (free will be preferred) that can convert text-files into pdf.

View 6 Replies View Related

General :: Create Cron Files And Run Them?

Oct 12, 2009

how to create cron file and how to run them?

View 2 Replies View Related

General :: Group Files And Create Archives Accordingly?

Jul 20, 2010

How can I group files and create archives accordingly? I have 10,000 files in a folder (no sub-folders) and I want to create 10 zip or tar.gz archives. This means every archive has 1,000 files. How can I do this in Linux?

View 1 Replies View Related

General :: Let MUTT Create 10 TXT Files Of The Last Emails?

Mar 7, 2010

I am coding some scripts for sending via irda to my PDA with another irda that has a triggering on the remote control. OK. What I would need is as follows. With MUTT, I configured it so that I can read my emails with the IMAP and gmail. It is cool. It is working with the last

Code:
mutt --version
mutt: invalid option -- '-'
Mutt 1.5.20 (2009-06-14)

which is annoying with "--" but ok, it works. I would like that a script export the last 10 emails to 10 x TXT files with in it:

[Code]....

View 1 Replies View Related

General :: Can't Create Files In Windows Partition

Jan 26, 2010

I have Suse 11.2 installed. In Dolphin file manager I can see read files in my windows partition. But I cant create or delete any of these files as a user. I opened Dolphin as root and changed the permission rights of this windows folder so that all groups and users can view and Modify content. But when I try to create something I get the message access denied, "check your permission rights". And how can I change these permission right for my user in console mode?

View 14 Replies View Related

General :: Create Files For Specific Output?

Mar 10, 2011

I would like to create a bash script that takes the following text and split in different files. The output is:

Code:
JOB ID: 1
JOB NAME: Test1
01012010 Message: Success1
01012010 Message: Success2

[Code]....

View 7 Replies View Related

General :: Bootable USB Flash - How To Create A Files System

Oct 20, 2010

I need to make a bootable USB stick.

1) How to format it with ext3

2) How to make a master boot record

3) How to create a files system

4) How to put syslinux, syslinux.cfg and a real kernel on the stick

View 2 Replies View Related

General :: Create A Simple GUI For The Bash Script Files?

Feb 20, 2010

Are there any tools that can be used to create a simple GUI for the bash script files i have created, and the GUI should be able to run on both Solaris and Red Hat systems.

View 4 Replies View Related

General :: Create A Share On Each And Then Be Able To Copy Files To Each Using Scripts

Feb 8, 2010

I have two Redhat Linux systems and I want create a share on each and then be able to copy files to each using scripts etc. (I dont want to use FTP) What is the most standard way of doing this?

I have read that you can use /etc/exports which seem easy enough, but how does one connect to the remote share and copy files etc, is this command line or file browser etc.

View 6 Replies View Related

General :: Create Repository Of Server Directory Which Contains Rpm Files?

Jan 2, 2010

here i want to ask u a simple do quations like

1.how to create repository of Server directory which contains rpm files

now i will tell how to create repo and problem is in it

at first i had created one directory in filesystem /data

#mkdir /data
now i mounted the ftp server to /mnt
#mount 192.168.1.254:/var/ftp/pub/ /mnt
and copied directory of Server
#cp -r /mnt/Server /data
# createrepo -v /root/Server
# vim /etc/yum.repos.d/rhel-debuginfo.repo

[Code]....

2.how to install total packages by using repository through yum command what are the steps to update and remove the packages

View 1 Replies View Related

General :: Create Backup/archive Ubuntu 10.04 System Files?

Jul 22, 2010

I'm trying to create backup/archive my Ubuntu 10.04 system files (so I can restore it in case my system get corrupted). More specifically, I'm trying to zip the important files in my root directory not including my home directory (which includes my documents which I backup separately/more frequently) to an external hard drive attached via USB (called 'My Book').

Since File Roller didn't give me quite the level of control I was looking for, I created a script that I could execute to backup and archive regularly. Here's a snippet:
cd /media/"My Book"/"Linux Backups"
NOW=$(date +"%b-%d-%y")
LOGFILE=Backup_Root_FileSystem-$NOW.log
sudo zip -r -T -v Backup_Root_FileSystem-$NOW / -x /media/'My Book'* /media* /proc* /sys* /mnt* /dev* /cdrom* /home* /'lost+found'* | tee -a $LOGFILE

[Code]...

View 5 Replies View Related

General :: Always Create Files/folders But Only Write To Those The User Owns?

Aug 14, 2011

I need 2 Linux users to share a folder. Within this folder, users should always be able to create files and sub-folders and write into any sub-folder (whether they own it or not). However, they should only be able to edit the files they actually own.

View 1 Replies View Related

General :: If Some Users Modify/delete/create Files/directories?

Oct 25, 2010

i've been wondering how do i know if some users create/modify/delete file/directory in linux, i've been using pyinotify in python script.this script like the example from the manual:

Code:
#!/usr/bin/python
import pyinotify, os, time

[code]...

View 10 Replies View Related

General :: Create Symbolic Links For Multiple Files Simutaneously ?

Feb 18, 2010

I have 5 files in directory /test1

I want to make symbolic links for all them to my current directory /test2

I tried

But it failed. It seems like I can't make symbolic links for all the 5 files simultaneously.

Often times I need make symbolic links for multiple files with some common pattern (just like ".txt" here). I really hope to avoid making symbolic link for each of them one by one...

View 3 Replies View Related

General :: How Udev Rules Work To Create Device Files

Jun 2, 2010

how udev rules work to create device files. Following is what I did for that: Up on plugging in my phone (sony w800i), I am getting a device file 'devcdc-wdm0' created. I just tried to figure out the rule which is responsible for the creation of this particular file.

I searched in 'etcudev ules.d' and 'libudev ules.d' for the string 'cdc-wdm' to find that rule. But I am not getting any hits in that search. Could any one help me out in this one.

BTW: I am using Ubuntu 9

View 6 Replies View Related

General :: Useradd Command To Create Passwd / Shadow & Other Files Under Different Directory

May 19, 2011

I am bulding my own image based on 2.6.32 kernel, I wish to add a guest user:

In a script thats invoked by the makefile, I use 'useradd' command & this updates the shadow, passwd files under /etc on the host, is it possible to tell the command to create the shadow / password under some other folder on the host? may be /tmp?

View 2 Replies View Related

General :: Create A Shell Script To Move Only Files Which Has Stopped Growing?

Jul 20, 2009

An external service I dont manage pushes mediafiles into a shared directory on my server. I need to move these files into their correct directories automatically. The problem is that if I run my script as a cronjob once every 3 minutes, I notice that the script copies files which are still on their way into my server. So I need to figure out how to have the script check that the files are complete (done downloading) before the script moves the files. This is what I got so far:

Code:

#!/bin/sh
# Script by proximity 280709.
# Locate correct directory

[code]....

View 8 Replies View Related

General :: Create A Multiple Files By Reading A Input File And Changing The Contents?

Sep 16, 2009

Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .

I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.

I want to create a mutiple output files with each file having a seperate code which is stored in text file and create XYZ_222_999_YYYYMMDD_1.TXT . and add date in the contents next to series of numbers .Like this

Before change the file looks like this

file name XYZ_111_999_YYYYMMDD_1.TXT

001,19SEP2009-14:05:05,000000003
1234
4567
6785
END_OF_DATA

[Code]....

View 4 Replies View Related

General :: File Permission - User Can Create Files/folders In The Shared Folder

May 4, 2011

Is possible to make a folder permission like below?

-User can create files/folders in the shared folder.

-But the files/folders they created, cannot be delete/change by em.
(only can be delete by root users)

-Each new files/folders created will auto owner to root only.

View 4 Replies View Related

Ubuntu :: Permissions For My Home Directory Were Accidentally Changed From 'access Files' To 'create And Delete Files?

Nov 25, 2010

the permissions for my home directory were accidentally changed from 'access files' to 'create and delete files', and I changed them back, but ever since then I am not able to change any preferences/settings at all. power management, themes, panels, emerald, anything. my user account is supposed to be the administrator, and all the user privliges are checked. how to get control of my computer back?

View 9 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

Programming :: Create Inverted Files To Associate Files To Numbers ( Numbers Being The Index Of My Paths )?

Apr 4, 2011

am writing a small search program for my class. I have decided to use indexing for my program. Ive researched online about indexing and how search engines do it. If im gonno do that I need to create inverted files to associate files to numbers ( numbers being the index of my paths ) . Now I was wondering what would be the best way to create an inverted file ? I was going to create sql tables using mysql api in C but then again there is no array data type or vectors to store few numbers in a single column in mysql and it is not advised to use Enum or SET

View 14 Replies View Related

General :: Create A Script That Will Simply Create A DIR With Date And Autorun Itself Every 24 Hours?

Jan 17, 2010

i am running into few problems with the script here. I have an FTP server, all configured, and i need to have a script that will create a folder with current dated within a tree as soon as particular user logs in. I was wondering if that is possible with proftpd. if not, can someone suggest how to create a script that will simply create a DIR with date and autorun itself every 24 hours? i am running Debian/Proftpd with Mysql authorization.

View 14 Replies View Related

Fedora :: Create DVD From MOV Files ?

Jul 10, 2010

I have a collection of .MOV files which I want to turn into a DVD. A real DVD, the kind that will play in a stand-alone DVD player. I am not too concerned about fancy menus or anything like that. I just want something my parents can stick in their DVD-VHS combo and hit the "Play" button. I don't know where to begin looking. Has anyone done this? Is there any kind of a How-To or something? What Linux tools exist for doing this?

View 4 Replies View Related

OpenSUSE :: Create Cue / Bin Files From A Cd?

May 2, 2010

I have an old dos game on cd. I can't make it work from dosbox using the cd, so I need to make cue and bin files of it.

View 8 Replies View Related

Debian :: Create ISO Image From .bin And .cue Files?

Sep 2, 2010

Debian 504 64-bit

How to create ISO image from .bin and .cue files?

View 3 Replies View Related

Fedora Servers :: PHP Not Able To Create Files In 10?

Apr 28, 2009

Im trying to understand why in my fedora 10 box I can not get php to create files. His is the cod that Im trying to run.

file createfile.php

[Code]....

View 4 Replies View Related







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