use samba to become another user


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers use samba to become another user
# 1  
Old 06-10-2009
use samba to become another user

Make that SUDO!
Does anybody use sudo to run programs as another user but not root?
I want to allow a user to run a compile script that oracle generally runs but if I could allow them to run it as oracle via sudo that would be great.
Does sudo work that way?

Last edited by mjdbhouse; 06-10-2009 at 04:15 PM.. Reason: what a maroon! I meant sudo not samba.
# 2  
Old 06-11-2009
I got my answer. Need to prefix the commands wit the username you want o run it as in:
somuser serverA = (username) /xxx
Then sudo -u username /xxx
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Setup Samba Server to always ask user and password

How do I setup a Samba server to always ask to user and password, when a windows user, prints your files using a shared printer through a Samba Linux Server (CUPS)? (0 Replies)
Discussion started by: viga
0 Replies

2. Red Hat

RHEL 6 SAMBA PDC not loading user's profile

Hi all I am facing a problem. I have configured SAMBA PDC on RHEL 6. Everything is going very smooth. Users are being logged in properly & their network drives (i-e; z: drives) are being shown. But either i login to Windows XP or Windows 7, user's profile does not get loaded. I get an error... (0 Replies)
Discussion started by: Yawar_Aziz
0 Replies

3. Linux

Force file ownership of a domain user in samba Share

Hi, I am using RedHat 6 and ,I am trying to force a domain user (from Windows AD) to take ownership of a file when it is created, or copied on a Samba share. I have managed to get this working for the root user using the code below: COMMENT = IT Data Share path =... (2 Replies)
Discussion started by: p2bas
2 Replies

4. UNIX for Dummies Questions & Answers

Help with Samba please!

I am having a nightmare getting a new Solaris server to join a domain in order to access some samba shares. I am a newbie to Unix so am learning as I go. Every time I try the net ads join -U administrator command, I get: # net ads join -U administrator Enter administrator's password: ... (9 Replies)
Discussion started by: mgreen81
9 Replies

5. Red Hat

Samba/Winbind issue - Can't get user and group info from sub domains

Hi, We now have a Samba or Winbind issue. The Linux client under RHEL6 can not get Windows' AD sub-domain info. See the following output please. The main domain 'Global' is shown online, but the sub-domain 'Europe' and 'Asia' are shown offline although they are online. Commands 'wbinfo -u' and... (0 Replies)
Discussion started by: aixlover
0 Replies

6. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

7. UNIX and Linux Applications

Copy numerous private Samba-shares as one user. (Syntax question)

Hello Forum, I was overwhelmed by how fast and correct the responses to my first question in this forum was, and I hope I expreience this again today. The reason is that I have to copy a fileserver (Ubuntu 8.04 32 with Samba) to another server via Internet within tomorrow. I have no problem... (0 Replies)
Discussion started by: primaxx
0 Replies

8. UNIX for Advanced & Expert Users

Determining if user is local-user in /etc/passwd or LDAP user

Besides doing some shell-script which loops through /etc/passwd, I was wondering if there was some command that would tell me, like an enhanced version of getent. The Operating system is Solaris 10 (recent-ish revision) using Sun DS for LDAP. (5 Replies)
Discussion started by: ckmehta
5 Replies

9. UNIX for Dummies Questions & Answers

samba user.map file

I am using Samba 3.0.33. The user.map file is not referred anywhere is Smb.conf. Infact, I couldn't see the user.map file any where in samba. But everything seems to be working. Is there an alternative way to refer to the users list. (2 Replies)
Discussion started by: sagar_evc
2 Replies

10. UNIX for Advanced & Expert Users

Windows 2003 use Samba user database

Hi, I have been looking for information on how to make a Windows 2003 server use the user database of an existing Samba installation. What I want is to use the Win3K as a (second) file server allowing users (using Win2K & Win XP computers) to access its shares using their existing user... (0 Replies)
Discussion started by: jcd
0 Replies
Login or Register to Ask a Question