Method: Specinfra::Command::Redhat::Base::File.check_is_accessible_by_user

Defined in:
lib/specinfra/command/redhat/base/file.rb

.check_is_accessible_by_user(file, user, access) ⇒ Object


3
4
5
6
# File 'lib/specinfra/command/redhat/base/file.rb', line 3

def check_is_accessible_by_user(file, user, access)
  # Redhat-specific
  "runuser -s /bin/sh -c \"test -#{access} #{file}\" #{user}"
end