Can't access /opt/newDirectory

6 views
Skip to first unread message

Patrick Bouldin

unread,
Aug 2, 2017, 6:33:44 PM8/2/17
to qubes-users
Related to earlier email:

I installed an app called splunk, and it seems to always install here:

/opt/splunk/ (off the root)

However, even with sudo I can't event change into the directory. Why is that? Can the app itself restrict access to that directory as part of set up? I'm doing all this within a fedora-24 template.

Here's the line by line showing this:
[user@fedora-24-work-splunk opt]$ pwd
/opt
[user@fedora-24-work-splunk opt]$ ls
google splunk
[user@fedora-24-work-splunk opt]$ cd splunk
bash: cd: splunk: Permission denied
[user@fedora-24-work-splunk opt]$ sudo cd splunk
[user@fedora-24-work-splunk opt]$ pwd
/opt


Thanks,
Patrick

Patrick Bouldin

unread,
Aug 2, 2017, 6:44:20 PM8/2/17
to qubes-users

Ok disregard, I just enabled su and was able to do that. Curious why prefixing with sudo didn't help. Thanks.

Unman

unread,
Aug 2, 2017, 7:39:37 PM8/2/17
to Patrick Bouldin, qubes-users
Two reasons for this: first, cd isn't an application, it's a shell
builtin( try 'type cd' )
Second, cd spawns a new process which exits when the command completes.
So even if the 'cd' were to succeed, when the process exits, the
original process is still where it started.
Reply all
Reply to author
Forward
0 new messages