Software :: Disable 'ls' Command For A User When FTPs

Apr 5, 2011

if I create a User in linux with useradd command useradd -s /bin/bash -d /home/testuser testuser

How can I make it such that he cannot run "ls" command when he FTPs into the server using the username/passwd I setup.I would not mind disabling "ls" for SSh or FTP as long as user is unable to list all files in the home directory and is only able to use FTP commands like GET, PUT, RENAME etc...
Dont want them to have DELETE permission also...in this folder. This user will only be used for FTP...how can I enforce the above controls.

View 3 Replies


ADVERTISEMENT

Ubuntu Servers :: Sftp Or Ftps - Configure Another User To Go Over The Web With Limited Folder Access?

Dec 11, 2010

I want to share files over the web with only a few people and limiting them to certain folders. I have been doing a remote access (ssh) to my server to access it from a pc on the local network. I later found out the same program doing ssh (open_ssh) was also doing sftp, great I could do both with one system account. Problem I couldn't find away to configure another user to go over the web with limited folder access without messing up my user to access the pc. I tried ftps by using vsftpd, I couldn't get chroot set up correctly or even log in. So my question is what program and/or protocol should I use to do secure ftp over the web?

OS: Ubuntu 64bit 10.04

View 4 Replies View Related

Security :: How To Disable Rm Command For An User

Apr 7, 2010

I just want to disable rm command for an user..Root only need to use that

View 14 Replies View Related

General :: Disable - Non-root Shell Command To Find If A User Account Is Enabled Or Not?

Aug 10, 2011

Is there a non-root shell command that can tell me if a user's account is disabled or not? note that there is a fine distinction between LOCKING and DISABLED:

LOCKING is where you prepend ! or * or !! to the password field of the /etc/passwd file. On Linux systems that shadow the passwords, this marker flag may be placed in /etc/shadow instead of /etc/passwd. Password locking can be done (at a shell prompt) via password -l username (as root) to lock the account of username, and the use of the option -u will unlock it.

DISABLING an account is done by setting the expiration time of the user account to some point in the past. This can be done with chage -E 0 username, which sets the expiration date to 0 days after the Unix epoch. Setting it to -1 will disable the use of the expiration date.

The effect of locking to to prevent the login process from using a supplied password to hash correctly against the saved hash (by virtue of the fact that the pre-pended marker character(s) are not valid output character(s) for the hash, thus no possible input can ever be used to generate a hash that would match it). The effect of disabling is to prevent any process from using an account because the expiration date of the account has already passed.For my situation, the use of locking is not sufficient because a user might still be able to login, e.g. using ssh authentication tokens, and processes under that user can still spawn other processes. Thus, we have accounts that are enabled or disabled, not just locked. We already know how to disable and enable the account - it requires root access and the use of chage, as shown above.To repeat my question: is there a shell command which can be run without root privileges which can output the status of this account expiration info for a given user? this is intended for use on a Red Hat Enterprise 5.4 system.The output is being returned to a java process which can then parse the output as needed, or make use of the return code.

View 2 Replies View Related

General :: Disable User And Change User Password Using SSH?

Oct 5, 2010

How do I disable and change the user password using SSH on a Linux

View 3 Replies View Related

General :: Disable The Su Command On A Server So That Users Cant Run The Su Command?

Apr 29, 2010

i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below

#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.

[code]....

View 8 Replies View Related

Fedora Servers :: Configure Ftps On Any Version?

Apr 7, 2010

how to configure ftps server on any version of fedora.

View 3 Replies View Related

Server :: Sftp And Ftps Configuration In RedHat?

Mar 8, 2011

how to setup ftps & sftp in RHEL 5.4 Server.

View 4 Replies View Related

Ubuntu :: Command To Determine Active User (Not $USER Variable)

Jul 21, 2010

I'm trying to write a small script that will run as root, but launch a command with sudo as another user. I want that user to be whichever user is active user. That is, the user that is using GDM right now, or the one that is logged into the current console. (by current console, I don't mean the user running the script, but rather the user logged into the console currently displayed on the screen.)How can this be done?

Code:

ACTIVE_USER=`somecommand`
test `id -u pulse` -ge 1000 && sudo -u $ACTIVE_USER $*

What can I use for "somecommand"?

View 5 Replies View Related

Red Hat / Fedora :: Curl FTPS Problem, Unable To Upload File?

Jan 6, 2010

I am using "curl" command line tool to upload file to ftp server through ftps.I have also tried with the "Secure FTP" software from windows using Implicit mode, which works fine while transfering files.Command as follows:

curl -vk --ftp-ssl -u [username]:[password] ftps://ftp.hostname/directory/test.txt -T /tmp/text.txt --ftp-pasv --disable-expsv
Login to server successfully but geting error while start to transfer data. The verbose

[code]....

View 9 Replies View Related

General :: FTP Client As Like FTPS On Windows - Reading Series Of Ftp Commands From A Txt File

Apr 20, 2011

I am very new to Linux and trying to learn the shell scripting. Just to know is there any client in linux which does the same task as FTPS on windows. FTPS on windows can read series of FTP command from a txt file and execute them. Is there any way to do that same task, i mean reading series of ftp commands from a txt file, on linux suing shell or perl (any module)?

View 2 Replies View Related

Networking :: Iptables - Allow Http And Https Together With Mail Server (incoming And Outgoing) And Ftp - Ftps And Ssh

Apr 28, 2010

i need is to have http and https allowed, together with mail server (incoming and outgoing) and ftp, ftps and ssh. all other ports have to be closed.

View 3 Replies View Related

General :: Use This Command It Will Ask The User To Enter Year In Command?

Apr 4, 2011

i want in the website they ask to enter some input.Code:echo -e "<p>Please Enter Year : c</p> "read Yearif i use this command it will ask the user to enter year in command. but what i want is they ask the user to enter year in web browser.

View 14 Replies View Related

Debian :: Disable For A User The Access To Usb Pen?

May 15, 2010

I want to refuse access for some users to usb pen and audio. In previous releases (debian, ubuntu , debian-based ..) , it is enough to remove the user from the group.

that is in /etc/group
audio:x:29:bela
plugdev:x:46:bela,geol

with theses lines : bela can heard sound, but not geol, for bela and geol the usb pen is automatically mounted. But not for nobody else. It is NOT the case in the new release, I mean, even if I remove a user from the plugdev group, the usb pen is automatically mounted for that user.

View 1 Replies View Related

Debian :: Disable The User Account Password?

Mar 13, 2011

just started using Debian today and I would like to know how can I disable the user acount password, I am the only user on this computer so I would like it to boot strait into my account.

View 3 Replies View Related

Fedora :: Disable Network Interfaces For A Particular User?

May 15, 2011

I'd like to set up a restricted guest account which is not allowed to access any network interfaces. In particular, I don't want that user to access the internet either directly or through some network proxy, but I'd like my own account to still have normal internet access. How do I disable all network services for a particular account without affecting other accounts?

View 3 Replies View Related

OpenSUSE Install :: How To Disable 'default User'

Jan 27, 2010

I don't want people to use my machine without my presence since I have a lot of cookies and files stored on this machine. So I hope each time the system starts it shows login window and asks for account/pwd. How can I do it?

View 8 Replies View Related

Ubuntu Networking :: Disable 'internet' For One User

May 27, 2010

I have searched for hours and have found nothing that works. Its just amazing that I have not destroyed my laptop yet. What I want to do is keep my child off the net under his user account. I have Karmic installed currently. I have tried adding an iptables rule: sudo iptables -A OUTPUT -p tcp -o eth0 -m owner --uid-owner test -j REJECT

That does not work. So then I tried to disable the network card for just one account... no go.I can only stop access totally for both users which doesn't work for me very well. No method gives me what I need. I want a way so I can login and use the computer normally AND an account he can login to and use but with no web.

View 1 Replies View Related

Ubuntu Servers :: Disable 'sudo' For All Or A Particular User And Allow Only 'su'?

Jul 30, 2010

How to disable 'sudo' for all or a particular user and allow only 'su'?

View 6 Replies View Related

Ubuntu :: Disable Live User On Liveusb?

Jul 4, 2011

When I boot from a live USB, it automatically logs in as the live user. I don't want that. I want to log in as a real user, without having to log out of the live user session first.I looked at all the options under system > administration > users&groups. Nothing seems applicable.PS, I did already create the real user and it's working fine. I just have to log out before I can log in as the right user.

View 5 Replies View Related

General :: Disable Telnet And Ssh For A Specific User?

Nov 12, 2010

I am looking for a way to deny telnet and ssh to one specific user. So far I've only tested with telnet and my attempts have been limited to various hosts.deny entries:

in.telnetd : user@server
in.telnetd : user@server.domain.com
in.telnetd : user@IP_address
in.telnetd : user@.domain.com

None of these work. The only thing I've found that does work is:in.telnetd : IP_addressBut this is only a semi-viable solution because we will soon have multiple logins for the one username from different servers and sub-nets. Ideally, I'd like to be able to deny telnet and ssh access to this username regardless of where the login originates. I suppose it would be possible to specify each server IP, but that'll be a bear to maintain

View 7 Replies View Related

Security :: Disable Remote Login For Particular User?

Feb 25, 2011

I want to disable the remote login for particular user id in linux server.

View 11 Replies View Related

Programming :: Disable Irq Line From User Space?

Jul 14, 2011

I have written a device driver and I would like to disable an interrupt. In kernel space there is a function called "disable_irq(int irq)", but, is it possible to do it from user space?

View 7 Replies View Related

Debian Configuration :: Disable Global User List ?

Sep 24, 2010

When I did external vulnerability scan of my servers, I discovered the following issue that I must correct:

THREAT:

This is the global system user list, which was retrieved during the scan by exploiting one or more vulnerabilities.

IMPACT:

These common account(s) can be used by a malicious user to break-in the system via password bruteforcing.

SOLUTION:

To prevent your host from being attacked, do one or more of the following:

RESULT:

So.. How can I prevent this scanner to reveal user names, in my case root ? Please help, It is mandatory for me to correct these issue.

View 3 Replies View Related

Fedora Security :: How To Disable Root And User Password

Jan 12, 2009

It seem like unix abit annoying every time you log in you need to password can I disable it

View 10 Replies View Related

Ubuntu :: Disable Access To Running Processes For Some User

Jan 9, 2010

is there any possible way to hide currently running processes from an user? This means I do not want him to know about what programs/processes does any other user but him run. In short words if that user runs 'ps -aux' he should get only his processes.

View 3 Replies View Related

Ubuntu Servers :: Disable Shutdown For Normal User?

Mar 12, 2010

for security reasons,I want to disable shutdown for normal user, but the post here does not help me. It is because when I open the /etc/X11/gdm/gdm.conf I just saw a blank file. I use the 9.10 version.

View 6 Replies View Related

Ubuntu :: Disable Internet Access For A Single User

Jan 17, 2011

I have a Lucid Ubuntu installed on my home PC with two user accounts, AmHero and simple. I would like to have all internet access disabled when my kids login with the 'simple' userid. And yes, internet should work when I login using AmHero. I tried this:

[URL]

..but this does not work and gives some errors on the terminal.

I can paste the errors, though I am not sure this will even work as I found this in an old post.

View 6 Replies View Related

Ubuntu :: Disable Multiple Logins For A Single User?

Apr 5, 2011

I'm trying to disable multiple logins for a single user on Ubuntu 10.10 but I haven't been able to find a way to do this on this version

View 4 Replies View Related

Ubuntu :: How To Disable User Apache On Login Screen

Aug 10, 2011

i created a user apache in group apache and by useradd and groupadd command. i am working on a user called server and group is also server. The login screen shows both the users apache and server. My concern is that if sombody has the password to the username apache, hecan login. How do you disable user apache on the login screen so that it only shows user server.

View 3 Replies View Related







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