Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How can I read files from the floppy in RedHat7.1 Post 8447 by syedifti on Thursday 11th of October 2001 03:12:16 PM
Old 10-11-2001
Code:
#!/bin/sh
if [ "$#" -lt 7 ]
 then 
    echo  "ERROR : usage ./create_users username uid gid password gecos home..."
 else 
 if grep $1 /etc/passwd >/dev/null
 then 
   echo "$1 exists please enter another username"
   else   
   echo $1:$4:$2:$3:$5:$6:$7 >>/etc/passwd
   pwconv
   echo $2 | passwd --stdin $1 > /dev/null
   mkdir /home/$1
   chown $1 /home/$1
   chgrp $3 /home/$1
   chmod 777 /home/$1
   cp /etc/skel/.* /home/$1 2>/dev/null
   echo " you are welcome to the systems"
   fi

Now please tell me what is wrong with this script
-Regards
-Iftikhar

fi

added code tags for readability --oombera

Last edited by oombera; 02-19-2004 at 05:15 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SFR Files on floppy tobe access in windows

I have here a UnixSlackware 2.01 disk that contains a so called SFR files, i want to open it on windows system since i dont have a unix system, is it posible ??? i tried to install WIPRO UWIN (korn shell) on my windows system but i cant access the floppydisk... so is there a posible solution... (1 Reply)
Discussion started by: mharck29
1 Replies

2. UNIX for Dummies Questions & Answers

How do i access (mount, read & write) a floppy disk from the console, not being root?

welll, the title quite explains what i want to do thanks for your time! (4 Replies)
Discussion started by: kfaday
4 Replies

3. SCO

Read a SCO floppy disk under another OS...

I have formatted a floppy disk under SCO unix. Is there a way I could read this disk under another operating system e.g. Windows or Linux? (1 Reply)
Discussion started by: sgertsos
1 Replies

4. Solaris

Can't read floppy and cdrom in single user mode

I am having trouble reading floppy and crom in single user mode. running volcheck doesn't do anything I am using Solaris -10 on Sun blade 150. Has anybody seen this problem .. or do I have to manually mount the cdrom ...and floppy ??? thanks (2 Replies)
Discussion started by: ajnabi
2 Replies

5. UNIX for Dummies Questions & Answers

regarding floppy

Regarding floppy drive .. I need a command or a method by which i can detect a floppy drive is present or not ? Thanks, Priya. (4 Replies)
Discussion started by: priyam
4 Replies

6. SCO

Read Floppy disk in SCO OpenServer 5.0

help me please i am beguinner in SCO operating system how i can read Floppy disk i install SCO OpenServer5.02 i want to /mnt but no result (3 Replies)
Discussion started by: walidfinder
3 Replies

7. UNIX for Advanced & Expert Users

read() wont allow me to read files larger than 2 gig (on a 64bit)

Hi the following c-code utilizing the 'read()' man 2 read method cant read in files larger that 2gig. Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()' The following program wont allow to allocate... (14 Replies)
Discussion started by: monkeyking
14 Replies

8. Shell Programming and Scripting

How to read log files from last read

Hi i am looking a way to look at a log file(log.txt) from the last time I've read it. However after some days the main log file(log.txt) is rename to (log.txt.1). So now i will have two log files as below. log.txt.1 log.txt Now, i have to read the log from the point where i have left... (3 Replies)
Discussion started by: sumitsks
3 Replies

9. Shell Programming and Scripting

Read files in shell script code and run a C program on those files

HI, I am trying to implement a simple shell script program that does not make use of ls or find commands as they are quite expensive on very large sets of files. So, I am trying to generate the file list myself. What I am trying to do is this: 1. Generate a file name using shell script, for... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies

10. UNIX for Advanced & Expert Users

[REDHAT7] Adding LVM volume

Dear community, is it possible to add more volumes to actual LVM disk? I have the following: # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 120G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 ... (0 Replies)
Discussion started by: Lord Spectre
0 Replies
MSDOSFS(5)						      BSD File Formats Manual							MSDOSFS(5)

NAME
msdosfs -- MS-DOS file system SYNOPSIS
options MSDOSFS DESCRIPTION
The msdosfs driver will permit the FreeBSD kernel to read and write MS-DOS based file systems. The most common usage follows: mount -t msdosfs /dev/ada0sN /mnt where N is the partition number and /mnt is a mount point. Some users tend to create a /dos directory for msdosfs mount points. This helps to keep better track of the file system, and make it more easily accessible. It is possible to define an entry in /etc/fstab that looks similar to: /dev/ada0sN /dos msdosfs rw 0 0 This will mount an MS-DOS based partition at the /dos mount point during system boot. Using /mnt as a permanent mount point is not advised as its intention has always been to be a temporary mount point for floppy and ZIP disks. See hier(7) for more information on FreeBSD direc- tory layout. SEE ALSO
mount(2), unmount(2), mount(8), mount_msdosfs(8), umount(8) AUTHORS
This manual page was written by Tom Rhodes <trhodes@FreeBSD.org>. BSD
October 1, 2013 BSD
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy