Sponsored Content
Top Forums UNIX for Advanced & Expert Users user is not able to FTP to system. Post 302248869 by Annihilannic on Monday 20th of October 2008 02:17:47 AM
Old 10-20-2008
The user needs to have a valid shell to use FTP, so /bin/false will prevent that.

Perhaps it would be better to give them a valid shell and create a root-owned .profile in their home directory which just exits.

By the way, it's "Role Based Access Control".
 

10 More Discussions You Might Find Interesting

1. Programming

Need help about realizing an ftp-like system.

Hi people! As you can read in the subject, I have a project at the University that requires me to realize a ftp-like through the sockets, in C. This is what I've been told so far, and since I'm studying Unix now for the first time I have little idea of where to start. Does anybody know of a... (1 Reply)
Discussion started by: OpSys
1 Replies

2. UNIX for Dummies Questions & Answers

FTP user

In my system , the user can use ftp to access the system , how to restrict the user can only access a specific path eg . user's home directory & /tmp ? thx (3 Replies)
Discussion started by: ust
3 Replies

3. Solaris

Secure FTP Problem using Sun SSH on Client system F-Secure on Server system

I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details: FTP Client has Sun SSH. FTP Server has F-Secure. I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies

4. HP-UX

FTP User

UNIX Xperts, Is there a way i can find out who is currently ftping into my server? The problem I am facing is that there is currently a ftp process running which is trying to login using the wrong password. And this is causing me to constantly have to reset the password /enable the account by... (1 Reply)
Discussion started by: simshark
1 Replies

5. Shell Programming and Scripting

FTP files to target Mainframe system

Hi Experts... Greetings for the day..! I just want to FTP the files to mainframe system.. my code is not working..and also i need to put the files in a particular directory in a specific naming format... ftp -i -n ${HOST_NAME} << END_FTP user ${USER_NAME} ${PASSWORD} put ${FILE_NAME}... (3 Replies)
Discussion started by: spkandy
3 Replies

6. OS X (Apple)

system() in carbon & FTP

Hey, I'm trying to establish a connection to FTP in carbon using the system() function, but I'm not sure how to supply my FTP password in the same command. For example, I have: system("ftp myusername@mydomain.net"); It then obviously prompts for the password, so I tried this (below)... (0 Replies)
Discussion started by: lectersmeal
0 Replies

7. Solaris

Ftp user

Hello everybody, In Solaris 10, how I can create an user with only access ftp to directory specify ? thanks, (2 Replies)
Discussion started by: aav1307
2 Replies

8. AIX

How to allow certain user to use FTP?

Hello AIXians, I created a user 'test' its home directory is: /home/ari/test I tried to login by ftp using this account, but it failed! The FTP service is enabled, and the user 'test' is not added to the /etc/ftpusers file. (3 Replies)
Discussion started by: Mohannad
3 Replies

9. UNIX for Beginners Questions & Answers

FTP from Widows to UNIX system - how to? ( was To not to duplicate)

Dear team , thanks for your support. I am trying to not to duplicate a thread if one is already there for what I am looking, which I am not able to figure out. Is it OK if I post the post the following question in new thread. --- What follows was in blue.. we are to avoid using colours as we want... (4 Replies)
Discussion started by: ar103081
4 Replies

10. UNIX for Beginners Questions & Answers

How Do I FTP System Files to Different Server?

Hello, I have a legacy system that is running on SCO OpenServer 5.0.6, and the hardware is becoming a little sketchy. I replaced the hard drive about a year ago, and was able to come back from a tape backup of my entire system. I have been successful with building a VM with VMware Workstation,... (42 Replies)
Discussion started by: spock9458
42 Replies
CHSH(1)                                                            User Commands                                                           CHSH(1)

NAME
chsh - change login shell SYNOPSIS
chsh [options] [LOGIN] DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change the login shell for her own account; the superuser may change the login shell for any account. OPTIONS
The options which apply to the chsh command are: -h, --help Display help message and exit. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -s, --shell SHELL The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell. If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks. NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value. FILES
/etc/passwd User account information. /etc/shells List of valid login shells. /etc/login.defs Shadow password suite configuration. SEE ALSO
chfn(1), login.defs(5), passwd(5). shadow-utils 4.5 01/25/2018 CHSH(1)
All times are GMT -4. The time now is 02:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy