sudo?

Any questions about the Command Line Interface can be placed here!
Forum rules
Please note the disclaimer before modifying your Synology Product.

sudo?

Postby cids.dk » Thu Sep 18, 2008 5:10 pm

I been trying to find out how to enable sudo on my NAS, but whit no luck.
Can anyone please tell me how to do this?
cids.dk
Trainee
Trainee
 
Posts: 12
Joined: Thu Sep 18, 2008 5:02 pm
Location: Iceland

Re: sudo?

Postby louis » Thu Sep 18, 2008 11:12 pm

Why do you want to ?
User avatar
louis
Sharp
Sharp
 
Posts: 161
Joined: Mon Jun 18, 2007 10:20 pm
Location: Netherlands

Re: sudo?

Postby cids.dk » Fri Sep 19, 2008 1:25 am

Don't like the idea of logging in as root, each time I have to gain rights to modify files.
And as it is now only root can changes, the content of files like "/etc/shadow" or "/etc/hosts.deny".
This also makes it hard (if not imposable) to use the exec() function in php, to modify files were root access is required.

I know that I can use chmod on the files, to allow other users to modify them, but I don't consider this to be a smart solution to my problem.
cids.dk
Trainee
Trainee
 
Posts: 12
Joined: Thu Sep 18, 2008 5:02 pm
Location: Iceland

Re: sudo?

Postby louis » Fri Sep 19, 2008 9:23 am

Thanks for your explanation.

In that case you might want to install sudo via ipkg ?

http://www.nslu2-linux.org/wiki/Optware ... g.Packages


If you do a search on syno-optware.zip, ipkg, optware, synology you'll find plenty of howto's ... if not give me a pm and I'll help you.
User avatar
louis
Sharp
Sharp
 
Posts: 161
Joined: Mon Jun 18, 2007 10:20 pm
Location: Netherlands

Re: sudo?

Postby louis » Fri Sep 19, 2008 10:34 am

To make life easier (and assuming Dutch not being your native language) I did some searching for you:
http://www.synology.nl/forum/bestanden/syno-optware.zip
and
http://synology.nl/forum/viewtopic.php?t=491
are the places you might want to look at
User avatar
louis
Sharp
Sharp
 
Posts: 161
Joined: Mon Jun 18, 2007 10:20 pm
Location: Netherlands

Re: sudo?

Postby cids.dk » Fri Sep 19, 2008 10:44 am

thank you for your responds.

well I attempted to do so all ready, but
Code: Select all
ipkg list | grep sudo

showed no result.

But i now know why, I didn't have the right repository(s) for ipkg.

Here is how one fix this, in case someone else wanna know.
But remember, to read the disclaimer regarding modifying your Synology Product before you do anything else.

You will need to have ipkg installed on the unit you like to modify (this is not covered below)

For ARM based Synology products:
add
Code: Select all
src nslu2 http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/
to your repository list (/opt/etc/ipkg.conf)

For PowerPc based Synology products:
add
Code: Select all
src nslu2 http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/
to your repository list (/opt/etc/ipkg.conf)

then do.
Code: Select all
ipkg update
cids.dk
Trainee
Trainee
 
Posts: 12
Joined: Thu Sep 18, 2008 5:02 pm
Location: Iceland

Re: sudo?

Postby louis » Fri Sep 19, 2008 7:28 pm

Thx for sharing
User avatar
louis
Sharp
Sharp
 
Posts: 161
Joined: Mon Jun 18, 2007 10:20 pm
Location: Netherlands


Return to Command Line Interface

Who is online

Users browsing this forum: No registered users and 3 guests