nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Shell script login

This is a discussion on Shell script login within the Shell scripting forums, part of the Development/Scripting category; hey i wanaa create a script where user can login enabling the script to run without giving access to a ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-04-2009, 04:49 PM
Junior Member
User
 
Join Date: Mar 2009
OS: Debian
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gsb1bee is on a distinguished road
Default Shell script login

hey i wanaa create a script where user can login enabling the script to run without giving access to a shell.

i kknow i have to a create a new user in root and after that my script runs automatically. It is something like run a script without human intervention .

Can anyone give me an idea to start a script?
Reply With Quote
  #2 (permalink)  
Old 29-04-2009, 09:19 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Use cronjobs to run scripts without without human intervention. For e.g. backup scripts automatically backups file and add them to a backup server without any sort of human intervention.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 19-05-2009, 05:23 AM
Member
User
 
Join Date: May 2009
OS: Mandriva
Posts: 93
Thanks: 0
Thanked 16 Times in 16 Posts
Rep Power: 3
cfajohnson has a spectacular aura about cfajohnson has a spectacular aura about cfajohnson has a spectacular aura about
Default

Quote:
Originally Posted by gsb1bee View Post
hey i wanaa create a script where user can login enabling the script to run without giving access to a shell.

i kknow i have to a create a new user in root and after that my script runs automatically. It is something like run a script without human intervention .

Put the path to the script in /etc/passwd as the user's login shell.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Shell Script To Run Program at Login gsb1bee Shell scripting 10 21-04-2009 05:51 PM
Binary Conversion Of Shell Script (shell script compiler) chandanperl Shell scripting 3 29-07-2008 10:22 AM
shell script to send mail for each login. ephdia Shell scripting 2 27-11-2007 04:42 PM
Why are ulimit values not being set properly upon SSH (Secure Shell) login? jerry Networking, Firewalls and Security 0 15-06-2007 10:58 PM
How to change the login shell for Linux user chimu Getting started tutorials 0 26-01-2007 07:20 PM


All times are GMT +5.5. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38