You are not logged in.
Pages: 1
I use slitaz as frugal installation on fat32 and for settings ext3 partition.
I should copy some files automatically under /usr/bin
If im trying to copy is giving error as permission denied. I should enter su user with password.
So what i need. How can i automatically use in terminal su user with password?
Offline
su means substitute user
tux@slitaz:~$ su
password:
If the password entered is correct:
root@slitaz:~#
When the command prompt looks like this:
root@slitaz:~#
You should be able to cp/mv/rm files/folders anywhere on your local filesystem.
Now to go back to tux:
root@slitaz:~# su tux
tux@slitaz:~$
Root is not asked for password to switch to a regular user.
Cooking has an annoying bug:
su changes current directory to /home/~ for regular users and /root for root
This is what su - is for.
su should never change the current directory.
If anyone knows how to fix this other than installing sudo please reply.
Offline
I mean i know how to use root user in terminal.
Just want to make it automatically way in shell script.
* something like i will give user and password in same line in terminal and terminal will be login root already.
* Or else i want people to use slitaz with all permission instead of tux. ( I dont know how )
I hope I am clear.
---------------------------------------------------------------
ACTUALLY I JUST WANNA COPY SINGLE FILE UNDER /ROOT FOLDER WHEN SLITAZ START OR IN SH FILE (USERS WILL NOT TYPE PASSWORD OR SOMETHING) (SHOULD BE AUTOMATICALLY)
[attachment=4864,260]
EVENT CANT COPY USR/BIN FOLDER
[attachment=4864,261]
Offline
You could add yourself to the root group, thus enabling you to do all things the root account can do. There are tools to do this (moduser), I don't have them on my slitaz, but adding tux to the end of the first line in /etc/group may work(?) so like this:
root:x:0:tux
I hold no resposibility for breaking your system though, because moduser might do more then just change that one file.
as i learned in linux (6 months experience with puppy, slitaz and xubuntu) small requests may turn be complicated 
its not like what i think, its about what linux distro think 
anyway thanks
Offline
If you want do do it as root every time booting slitaz, you just put the command in /etc/init.d/local.sh
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]