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 1st March 2006, 03:10 AM
mick-porter Offline
Registered User
 
Join Date: May 2005
Posts: 134
Disabling terminal for a specific user

I have a user lets call it user1 how can I disable all access from any terminal so that he can't use sftp or scp or ssh but he can use ftp. I have ftp working and OpenSSH is running but I don't want to give them access to that just ftp.

Max
Reply With Quote
  #2  
Old 1st March 2006, 03:28 AM
jhetrick62 Offline
Registered User
 
Join Date: Feb 2005
Location: Buffalo, Ny
Posts: 875
Have you tried assigning this user to a unique group, and then turning off "others" permissions for these services. Then assign any users that you want to use all services to belong to this unique user group.

Jeff
Reply With Quote
  #3  
Old 1st March 2006, 03:32 AM
mick-porter Offline
Registered User
 
Join Date: May 2005
Posts: 134
I don't mean like that I mean just for this user disabling the terminal. cause that will disable everything ssh scp and sftp wise.

Max
Reply With Quote
  #4  
Old 1st March 2006, 04:01 AM
mick-porter Offline
Registered User
 
Join Date: May 2005
Posts: 134
when I disable a shell it won't let ftp connect but I saw something before where they make a shell in /bin/ftpaccess and whenever you would login it would give you an error message.

Max
Reply With Quote
  #5  
Old 1st March 2006, 04:04 AM
daverj Offline
Registered User
 
Join Date: Jan 2006
Location: Denver, CO USA
Posts: 670
sshd has a config file in which you can restrict access. I'm not sure where it is. Probably in /etc somewhere.
Reply With Quote
  #6  
Old 1st March 2006, 04:13 AM
mick-porter Offline
Registered User
 
Join Date: May 2005
Posts: 134
I know where that is but say they were my friend and they came to my work and tried to log into the server I want to deny them access to any shell.

Max
Reply With Quote
  #7  
Old 1st March 2006, 04:15 AM
mick-porter Offline
Registered User
 
Join Date: May 2005
Posts: 134
except giving them the shell /bin/false because that blocks ftp access.

Max
Reply With Quote
  #8  
Old 1st March 2006, 04:16 AM
ryan.overton Offline
Registered User
 
Join Date: Oct 2004
Posts: 25
the look for /etc/passwd file and you should see something like this

username:x:48:48:username:/home/username:/bin/bash

take off the /bin/bash at the end, and replace with /sbin/nologin
Reply With Quote
Reply

Tags
disabling, specific, terminal, user

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
no sound in kde for specific user hobz Using Fedora 2 26th June 2009 09:39 AM
User specific printer settings TheronMuller Using Fedora 1 15th June 2009 02:02 PM
How to install a program for a specific user only JacekZ Using Fedora 1 6th November 2007 05:23 PM
enable only port 80 on a specific user wshamroukh Servers & Networking 4 25th July 2007 10:09 AM


Current GMT-time: 09:38 (Wednesday, 19-06-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