![]() |
2011-12-01
, 12:49
|
|
Posts: 298 |
Thanked: 341 times |
Joined on Aug 2010
@ This world :)
|
#2
|
![]() |
2011-12-01
, 12:55
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#3
|
How do I Run a script with root privelages?
Im going to try:
to execute: (in xterm)
devel-su
[root pw]
sh ssh_root.sh
ssh_root.sh script:
would this work????Code:#!/bin/sh# <-- remove the # devel-su rm /etc/ssh/sshd_config # mv /home/user/MyDocs/sshd_config /etc/ssh/sshd_config # better cp -r /home/user/MyDocs/sshd_config /etc/ssh/ echo -e 'mkdir -m 0755 -p /var/run/sshd\nexec /usr/sbin/sshd $SSHD_OPTS' >> /etc/default/ssh pkill -9 /usr/sbin/sshd
The Following User Says Thank You to santiago For This Useful Post: | ||
![]() |
2011-12-01
, 13:14
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#4
|
run-standalone.sh scriptname.sh
![]() |
2011-12-01
, 13:21
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#5
|
thanks, but I dont get the
part...Code:run-standalone.sh scriptname.sh
![]() |
2011-12-01
, 13:25
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#6
|
![]() |
2011-12-01
, 13:33
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#7
|
![]() |
2011-12-01
, 13:37
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#8
|
![]() |
2011-12-01
, 13:47
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#9
|
![]() |
2011-12-03
, 17:28
|
Posts: 35 |
Thanked: 4 times |
Joined on Nov 2011
@ hungaryan
|
#10
|
Im going to try:
to execute: (in xterm)
devel-su
[root pw]
sh ssh_root.sh
ssh_root.sh script:
N9 / N900 Youtube Videos
N9 "Faster, Darker, Better" Theme Pack
---
www.F2thaK.com