Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th November 2012, 07:15 PM
arkan5 Offline
Registered User
 
Join Date: Nov 2012
Location: USA
Posts: 2
windows_7firefox
newusers command - permission denied

In Fedora 17, I'm trying to add a batch of users from a text file using the newusers command. I created a file named users.txt, located in root's home directory. The file is owned by the root user and root group.

The command I enter (logged in as root) is:
newusers /root/users.txt

but I keep getting this error:
newusers: /root/users.txt: Permission denied

I've tried setting the permissions on users.txt to rwxrwxrwx, but that hasn't changed the result. Please help!

Last edited by arkan5; 18th November 2012 at 07:21 PM. Reason: More information
Reply With Quote
  #2  
Old 18th November 2012, 08:32 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: newusers command - permission denied

It's complaining because it's too unprotected, your chmod to 777 means anyone and every one can read that file
(no protection at all on it)

see "man newusers"

Quote:
CAVEATS
The input file must be protected since it contains unencrypted passwords.
the input file argument should be a file that's only readable by root user and not executable. I'd try:
Quote:
chown root /root/users.txt (probably already root owned but make sure)
chmod 400 /root/users.txt
then retry your newusers command on it.

I suppose another option is to cat the users.txt into the newusers by standard input, the man
page says it can take the input by standard input (default)
Quote:
cat /root/users.txt | newusers
that avoids the whole permission issue

Last edited by marko; 18th November 2012 at 08:36 PM.
Reply With Quote
  #3  
Old 26th November 2012, 04:38 PM
arkan5 Offline
Registered User
 
Join Date: Nov 2012
Location: USA
Posts: 2
windows_7firefox
Re: newusers command - permission denied

Thanks for the reply, but I ended up reinstalling because my project deadline was nearing. It worked after that with permission set at 640. I like your redirect idea, in the future I'll try that.
Reply With Quote
Reply

Tags
command, denied, newusers, permission

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
permission denied while using MAKE command FerozMA Using Fedora 1 13th December 2009 11:08 AM
Permission denied on running rsh command youhaodeyi Servers & Networking 0 28th November 2007 01:31 AM
Issue getting MajorDomo running - getting "Permission Denied Error on RESEND command" scoutert24 Using Fedora 0 24th July 2007 07:13 PM
Samba net command - permission denied ssdowd Servers & Networking 1 27th July 2005 08:36 PM


Current GMT-time: 03:13 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat